import multi type data in MATLAB
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How I can import a text file in MATLAB including 256 columns: first column is string and other columns are numeric data.
0 commentaires
Réponse acceptée
Gerd
le 29 Juin 2011
Hi Sarah,
depending on your specific file you can use
fid= fopen('File.txt');
textscan(fid,'%s%f.....');
fclose(fid);
Gerd
6 commentaires
Jan
le 29 Juin 2011
Data = textscan(fid,['%s' repmat('%f',1,255)]);
Then Data is a cell, which contains the different columns as elements. See "help textscan".
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Large Files and Big Data dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!