Textscan syntax disagreement
Mostra commenti meno recenti
I am using textscan to import a file. It has 40 columns, which means I use the following.
data = textscan(dataID, '%f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f');
However I'd like to shorten this up a bit, and go with this instead.
data = textscan(dataID, '%f', 40);
Unfortunately the two return different values and I can't for the life of me figure out why.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su NaNs in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!