Extract each value from rows of excel sheet for 40 iterations
1 回表示 (過去 30 日間)
古いコメントを表示
Arif Adam Bin Mohd Nor
2020 年 7 月 1 日
回答済み: Walter Roberson
2020 年 7 月 1 日
I have an excel file which consists of 40rows and 1 column. All values are numerical. The values are for parameter named 'K'. There will be 40 iterations to be processed. For example, iteration1, K=row1column1; For iteration2, K=row2column1. Could anyone please assist on how to import the data, extract every value at different rows for each iteration? Thank you.
0 件のコメント
採用された回答
Walter Roberson
2020 年 7 月 1 日
values = xlsread('Filename.xlsx');
for iteration = 1 : length(values)
K = values(iteration);
do something with K
end
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!