Textscan difficulties opening file.
Mostra commenti meno recenti
Trying to read a file but failing miserably. File that I'm trying to open is attached. Here's what I'm doing:
fnm = '0782en_OD_monoc_9_4_08.csv.analized'
fid = fopen(fnm,'r')
textData = textscan(fid,'%s%s%s%s%s%s%s%s%s%f%f','delimiter','\t');
When opened on the occasion that it works, it comes up with a 1x11 cell with none of the data inside because the s's and f's inside of the percent symbols are likely off of what they should be. If someone could point me in the right direction for what I should put in the percents/ give me a script to open this file, that would be much appreciated. I highly recommend trying to open the attached file yourself to see if there are other issues.
Thanks all.
Edit: I'd be most appreciative if someone were to just dump the entire list of commands that I should perform into the comments. Would make it way easier for a noob like me to follow.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Characters and Strings 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!