Borrar filtros
Borrar filtros

To store many double arrays in a double array

5 visualizaciones (últimos 30 días)
Khaing Zin Htwe
Khaing Zin Htwe el 20 de Abr. de 2016
Comentada: Khaing Zin Htwe el 22 de Abr. de 2016
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.

Respuesta aceptada

Jan
Jan el 21 de Abr. de 2016
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.

Más respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 20 de Abr. de 2016
Editada: Azzi Abdelmalek el 20 de Abr. de 2016
  5 comentarios
Azzi Abdelmalek
Azzi Abdelmalek el 21 de Abr. de 2016
You said it worked!
Khaing Zin Htwe
Khaing Zin Htwe el 22 de Abr. de 2016
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by