To store many double arrays in a double array

5 次查看(过去 30 天)
Dear all, Could you please help me how to store many double arrays in a single array? I have many double arrays with dimensions 1x512 .I want to store these array in a single array.How can I do it,please? Thanks all.

采纳的回答

Jan
Jan 2016-4-21
a = rand(1, 512);
b = rand(1, 512);
c = rand(1, 512);
M = [a; b; c]
Having "many" variables sounds like a bad idea. Note that the matrix is more practical.

更多回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2016-4-20
编辑:Azzi Abdelmalek 2016-4-20
  5 个评论
Khaing Zin Htwe
Khaing Zin Htwe 2016-4-22
I meant storing many arrays with same dimension to a single array was okay. But not for different dimensions. It says that " dimensions are not consistent".THanks sir.

请先登录,再进行评论。

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by