Data transfer from excel to matlab!
古いコメントを表示
Hello to everyone
I want data transfer from excel to matlab. You can see the matrix I want to create in the image.

For example, I want to create [1 1 1] where the matrix intersects the first row and column. How can I do that? Thanks.
採用された回答
その他の回答 (1 件)
madhan ravi
2018 年 12 月 21 日
0 投票
Use readtable() to read the excel file
6 件のコメント
Abdullah Türk
2018 年 12 月 21 日
madhan ravi
2018 年 12 月 21 日
Use cell arrays then to hold double arrays
Abdullah Türk
2018 年 12 月 21 日
madhan ravi
2018 年 12 月 21 日
can you post the code that you are trying?
Abdullah Türk
2018 年 12 月 21 日
madhan ravi
2018 年 12 月 21 日
T=readtable('matrix.xls')
Gives:
Warning: Variable names were modified to make them valid MATLAB identifiers. The
original names are saved in the VariableDescriptions property.
T =
4×5 table
x_111_ x_1_91_71_5_ x_1_51_31_ x_111__1 x_135_
_____________ _______________ _______________ _____________ _________
'[5 7 9]' '[1 1 1]' '[5 7 9]' '[1 1 1]' '[3 5 7]'
'[1 3 5]' '[1/9 1/7 1/5]' '[1 1 1]' '[1/5 1/3 1]' '[3 5 7]'
'[1 1 1]' '[1 1 1]' '[1 3 5]' '[1 1 1]' '[1 1 1]'
'[1/5 1/3 1]' '[1/7 1/5 1/3]' '[1/7 1/5 1/3]' '[1 1 1]' '[1 1 1]'
カテゴリ
ヘルプ センター および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
