Textscan, dlmread, and importdata all not working
Afficher commentaires plus anciens
I have a very simple text file comprised of 1's and 0's. I have tried to read it into MATLAB with every function I can find, but nonetheless I get an error of some form. dlmread seems the most promising, but it throws a "Mismatch between file and format character vector." error. textscan did not work as it created a 1X1 cell with all of the data in it, and trying A = A{:} also did not work, similar error with importdata. Any help would be much appreciated.
6 commentaires
Skyler Castillo-Wilson
le 29 Juin 2018
Star Strider
le 29 Juin 2018
‘... trying A = A{:} also did not work ...’
Try using the cell2mat function, or alternatively:
[A{:}]
Skyler Castillo-Wilson
le 29 Juin 2018
" textscan did not work as it created a 1X1 cell with all of the data in it"
Why do you think that having the data in one cell is a problem? What is important is how you called textcan and the content of the cell. But unless you give us this information we will just be guessing...
Skyler Castillo-Wilson
le 29 Juin 2018
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Large Files and Big Data dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
