How can i put in matrix data into cell array?
2 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/860830/image.png)
I want to put these data in each row of cell array. How should I write the code?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/860835/image.png)
This is example, I want to make a cell like this.
1 件のコメント
Stephen23
2022 年 1 月 13 日
@지원 정: you did not tell us the most important information: how did you get all of these variables into the workspace?
Rather than writing bad code to try and fix that very bad data design (lots of separate numbered variables), by far the best solution is to avoid getting into this situation in the first place. We can help you do that, if you tell us how those variables got into the workspace in the first place: I doubt that you wrote them all by hand.
採用された回答
KALYAN ACHARJYA
2022 年 1 月 12 日
4 件のコメント
KALYAN ACHARJYA
2022 年 1 月 12 日
編集済み: KALYAN ACHARJYA
2022 年 1 月 12 日
@Stephen Thanks for detail explanation.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!