xlsread doesn't read a column that contains string in the cells with unknown number of rows
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
farzad
le 20 Juin 2019
Réponse apportée : Dimitar Georgiev
le 20 Juin 2019
Hi all
I am trying to read from an xlsx Excel file some rows in clumn 1 that are strings.
xlsread alone does not function
how to read all and put into a list ?
9 commentaires
Bob Thompson
le 20 Juin 2019
A conversion to what? What are you looking to do with it? all(1) is a cell class element, but all{1} is a string class, which can be used as an input for other commands, such as a file reading function.
Réponse acceptée
Dimitar Georgiev
le 20 Juin 2019
You can use readcell, for example,
example = readcell('example.xlsx','Range','A2:P5');
Now you can extract strings from the cell array.
I would recommend you to read:
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Type Conversion 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!