feof to loop through lines of data?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Image Analyst
am 5 Dez. 2014
OK. Good luck with that. There are examples in the help for fgetl() and sscanf() to help you.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!