Best function for opening up .csv files as a matrix?
Afficher commentaires plus anciens
I'm using matlab 2012 and the function:
a = fopen('filename.csv');
b = textscan(a, '%s %s %s %s', 'delimiter', ',')
But the resulting matrix is a 1x4 cell with 101x1 matrixes inside of them. I was hoping for a 101x4 matrix since that would be easier to work with. Does the 2012 version of matlab not have a function for this?
All the best,
1 commentaire
Stephen23
le 2 Juin 2017
Is the data string or numeric?
Réponse acceptée
Plus de réponses (1)
Stephen23
le 2 Juin 2017
0 votes
Catégories
En savoir plus sur Characters and Strings 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!