feof to loop through lines of data?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hey, so i'm supposed to have a file called xypts with data like below where everything is spaced one apart.
z 0 y 1
z 4.6 y 2.2
z 6.8 y 6
z 8.1 y 7.4
I have to use a while loop and fgetl to read each line as a string. In the loop, it creates z and y vectors for the data points. It will loop until the end of the file is reached. The number of points should be in the plot title.
2 comentarios
Image Analyst
el 5 de Dic. de 2014
OK. Good luck with that. There are examples in the help for fgetl() and sscanf() to help you.
Respuestas (0)
Ver también
Categorías
Más información sobre Function Creation 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!