assigning array to another
Mostrar comentarios más antiguos
I'm struggling with the rows index of the matrix.
First I have Matrix A which is 1125 X 30 dimensions. I want to initialize Matrix B as 10 X 30, first as zeros and then matrix B takes the first ninth rows of matrix A, and keep its last rows as zeros. How can I do that?
6 comentarios
James Tursa
el 3 de Abr. de 2015
Editada: James Tursa
el 3 de Abr. de 2015
What is "... first ninth rows ..."? The 1st through the 9th? The 1st and 9th only? Every 9th row? Or what?
And where exactly in B do you want these rows of A to appear?
Hello Matlab
el 3 de Abr. de 2015
the cyclist
el 3 de Abr. de 2015
This is not perfectly clear to me. What is the final size of B?
Hello Matlab
el 3 de Abr. de 2015
James Tursa
el 3 de Abr. de 2015
Where in B do you want these values of A to be assigned?
Hello Matlab
el 3 de Abr. de 2015
Editada: Hello Matlab
el 3 de Abr. de 2015
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!