Use variables for DataRange option in detectImportOptions
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nicola Caldognetto
am 1 Apr. 2020
Beantwortet: Nicola Caldognetto
am 1 Apr. 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 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!