Use variables for DataRange option in detectImportOptions
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nicola Caldognetto
le 1 Avr 2020
Réponse apportée : Nicola Caldognetto
le 1 Avr 2020
So,
I'm reading an xlsx file with
covidData = detectImportOptions('COVID19.xlsx');
now, I would like to use
covidData.DataRange = 'firstIndex:lastIndex';
to access the data I need. Problem is that my range is saved into variables and, I don't think that .DataRange took actual variable as a range but it works only if I use actual number as
covidData.DataRange = '1:2';
Is there a way to bypass it?
0 commentaires
Réponse acceptée
Plus de réponses (0)
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!