Matlab script question

조회 수: 2 (최근 30일)
Eugene
Eugene 2012년 6월 11일
Take for example my script.m file has "A + B", and I have a .txt file that has two columns with x rows. I have assigned one of those columns as A, and another as B.
My question is how do I run the script.m file so that it uses those A and B values from the txt file? The only message I seem to get is that I have undefined variables for A and B, when I have already assigned them as such.
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 6월 11일
Duplicate is at http://www.mathworks.com/matlabcentral/answers/40800-matlab-script-question-quick

댓글을 달려면 로그인하십시오.

답변 (1개)

oblivious
oblivious 2012년 6월 11일
first open that file and read data. use fopen, fscanf etc to read data

카테고리

Help CenterFile Exchange에서 Low-Level File I/O에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by