Read NaN data from excel file
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Anna Stasinopoulou
le 5 Juin 2021
Commenté : Sulaymon Eshkabilov
le 9 Juin 2021
Hello, I want to read an excel file with 2 columns and many rows and I need to read all the data, from row 1 to the last one. The problem is that the first rows are empty excel cells and when using xlsread, matlab ignores them and starts reading from the first not NaN data. Is there anything I can do to fix that?
0 commentaires
Réponse acceptée
Sulaymon Eshkabilov
le 5 Juin 2021
If you are using xlsread(), then specify the cell range, e,g: DATA = xlsread('MY_data.xlsx', 'Sheet1', 'A1:D123');
Then you can convert all emppty cells into nan's by using logical indexing using missing data.
2 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Spreadsheets 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!