Select a range of rows in Excel
36 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I am trying to select a number of rows from an Excel sheet. For example, selecting only row 90 to row 233. Can someones advice me how to do this? This is the piece of code I'm trying to change.
0 件のコメント
回答 (1 件)
Jon
2020 年 12 月 4 日
編集済み: Jon
2020 年 12 月 4 日
You should be able to use MATLAB's readmatrix function, e.g
data = readmatrix('myfile.xlsx','Range','90:233')
or if the start and end row numbers are variables
startRow = 90
endRow = 233,
range = [num2str(startRow),':',num2str(endRow)] % build string eg '90:233'
data = readmatrix('myfile.xlsx','Range',range)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!