Use variables for DataRange option in detectImportOptions
6 ビュー (過去 30 日間)
古いコメントを表示
Nicola Caldognetto
2020 年 4 月 1 日
回答済み: Nicola Caldognetto
2020 年 4 月 1 日
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 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Import from MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!