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 visualización (últimos 30 días)
Mostrar comentarios más antiguos
GHUFRAN AHMAD KHAN
el 28 de Dic. de 2018
Editada: madhan ravi
el 28 de Dic. de 2018
V = 1X3 cell
V{1} = 500X5, V{2}= 500X5, V{3}= 500X5
i want one single matrix of order 500X5.
1 comentario
Omer Yasin Birey
el 28 de Dic. de 2018
Hi Ghufran,
What do you mean by single matrix of order 500x5. Do you want to sum all the indexes of V?
Respuesta aceptada
madhan ravi
el 28 de Dic. de 2018
Editada: madhan ravi
el 28 de Dic. de 2018
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 comentarios
madhan ravi
el 28 de Dic. de 2018
Editada: madhan ravi
el 28 de Dic. de 2018
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
el 28 de Dic. de 2018
Editada: madhan ravi
el 28 de Dic. de 2018
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).
Más respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices 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!