Borrar filtros
Borrar filtros

Matlab script question

3 visualizaciones (últimos 30 días)
Eugene
Eugene el 11 de Jun. de 2012
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 comentario
Walter Roberson
Walter Roberson el 11 de Jun. de 2012
Duplicate is at http://www.mathworks.com/matlabcentral/answers/40800-matlab-script-question-quick

Iniciar sesión para comentar.

Respuestas (1)

oblivious
oblivious el 11 de Jun. de 2012
first open that file and read data. use fopen, fscanf etc to read data

Categorías

Más información sobre String Parsing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by