Why does the CSVREAD function not read in my data in MATLAB?
Mostra commenti meno recenti
The following data file is not read correctly by the CSVREAD function:
1, 2, 3, 4
5, 6
When I use CSVREAD to read in this data file, I receive the following output:
Warning: Input arguments must be scalar.
> In dlmread>cell2array at 204
In dlmread at 145
In csvread at 45
??? Error using ==> vertcat
All rows in the bracketed expression must have the same
number of columns.
However, if I press Enter after the '6' in the text file, the file is read in with no problem and returns the expected data:
ans =
1 2 3 4
5 6 0 0
Why does this happen?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Text Files in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!