How to import an excel sheet into MATLAB
30 ビュー (過去 30 日間)
古いコメントを表示
Hi..I have an excel sheet consisting of say, 10 rows and 5 columns. Now, I need to read these values from the excel sheet, perform some mathematical operation on these values and then store the data in a new array. Please help me out with this.
Also, if there are 'n' such worksheets, I need to select few particular worksheets and then perform the operation on only these sheets and the remaining should remain intact.
0 件のコメント
採用された回答
Ryan Livingston
2013 年 3 月 8 日
XLSREAD can do it programatically:
and there are some GUI's which let you do it too:
0 件のコメント
その他の回答 (1 件)
Ruben
2013 年 3 月 8 日
編集済み: Ruben
2013 年 3 月 8 日
make sure the excel sheet you want to import from is in your current directory, then double click it (in the current folder section of your MATLAB window). You will receive options to import it.
Another way (which I prefer) is just copy paste. Right click in your workspace and select 'new'. You can then edit this variable in the variable editor and paste the required fields from your excel file.
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!