i have one cell V of order 1X3 and each cell has matrix of order 500X5 and i want to create matrix V of order 500X5 .please give me solution

1 次查看(过去 30 天)
V = 1X3 cell
V{1} = 500X5, V{2}= 500X5, V{3}= 500X5
i want one single matrix of order 500X5.

采纳的回答

madhan ravi
madhan ravi 2018-12-28
编辑:madhan ravi 2018-12-28
Best way is to store them in a 3D matrix:
V{1} = rand(500,5); % an example
V{2} = rand(500,5);
V{3} = rand(500,5);
v=[V{:}];
VV=reshape(v,500,5,[]);
  3 个评论
madhan ravi
madhan ravi 2018-12-28
编辑:madhan ravi 2018-12-28
you need to explain once more what your trying to achieve , it's not clear yet , explain with a short explicit example
Omer Yasin Birey
Omer Yasin Birey 2018-12-28
编辑:madhan ravi 2018-12-28
You have 500x5x3 elements. But for a reason, you want to make it 500x5. I believe you cannot huddle them without doing any operation (like summation).

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by