mercredi 27 août 2014

How to have MATLAB read a table in a txt file that contains both words and numbers


Vote count:

0




I have a text file that is formatted as follows:


number number word number number

number number word number number

number number word number number

number number word number number

number number word number number


I'm trying to save the fourth column of numbers as its own vector in MATLAB. I thought of loading the table into MATLAB using 'load' but apparently it can't deal with non-numeric characters in the table.


Looking around I noticed 'fscanf' or 'textread/scan' may come in handy, but I am not familiar with how they work. Can anyone help?


Thank you



asked 22 secs ago







How to have MATLAB read a table in a txt file that contains both words and numbers

Aucun commentaire:

Enregistrer un commentaire