feof to loop through lines of data?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Image Analyst
il 5 Dic 2014
OK. Good luck with that. There are examples in the help for fgetl() and sscanf() to help you.
Risposte (0)
Vedere anche
Categorie
Scopri di più su Function Creation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!