How can i put in matrix data into cell array?

1 次查看(过去 30 天)
This is the matrix data extracted from my csv.
I want to put these data in each row of cell array. How should I write the code?
This is example, I want to make a cell like this.
  1 个评论
Stephen23
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
KALYAN ACHARJYA 2022-1-12
Cell array
for i=1:length(matrix_data)
cell_data{i}=matrix_data;
end
  4 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by