MATLAB: To store many double arrays in a double array

many double arraysto store in a single array

Dear all, Could you please help me how to store many double arrays in a single array? I have many double arrays with dimensions 1×512 .I want to store these array in a single array.How can I do it,please? Thanks all.

Best Answer

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.
Related Question