put a some small matrix in a big matris
Mostrar comentarios más antiguos
I have a problem. I have a big matrix that in each loop I search for some data that satisfy some conditions. The result of "find" will be a small matrix that can vary in size. I want to put this small matrix in a for example 100*100 zeros matrix. so my problem is: suppose at first iteration I have a 3*4 matrix that I want to be placed in the top left corner of the big matrix. I want to keep the small matrix arrangement. I mean I do not want to reshape the small matrix. in the next iteration, I have another small matrix that I want to be placed exactly next to previous small matrix in the big matrix. I want my program to be able to recognize to put for example the small matrix obtained by 5th iteration at next zero row. Could anyone please help me to do that without lots of "for-if"?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Resizing and Reshaping Matrices en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!