How to create the following file for this function script header
Mostrar comentarios más antiguos
I have a function script which should receive through the header the name of the file that contains a data set. This file is to contain two columns of numbers; the first column x-values, the second column y-values. Finally, the file is to be in ascii format.
Can someone please help me with this?
Respuestas (1)
Walter Roberson
el 24 de Abr. de 2020
0 votos
You can load() the file whose name is passed in.
2 comentarios
Anthony Bartsch
el 24 de Abr. de 2020
Editada: Anthony Bartsch
el 24 de Abr. de 2020
Walter Roberson
el 24 de Abr. de 2020
The file extension can be anything other than .mat or .fig in order for MATLAB to guess that it contains text.
I would tend to think that the file would contain values generated by your previous question about how to write two columns of numbers to a file.
Categorías
Más información sobre Whos en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!