put a mall matrix in a big matrix

2 visualizaciones (últimos 30 días)
Michael
Michael el 24 de Oct. de 2013
Comentada: John D'Errico el 24 de Oct. de 2013
Helll everybody,
A = zeros(672,34953);
I want to put a quadratic matrix (672,672) B, beginning at this spot (1,5377)
anybody has any idea how can i implement it quickly and efficiently ?
Thanks

Respuesta aceptada

Jan
Jan el 24 de Oct. de 2013
A( 1: 1 + size(B,1)-1, 5377 : 5377 + size(B, 2) - 1 ) = B;
  6 comentarios
Michael
Michael el 24 de Oct. de 2013
so 2 lines for 2 matrices ?
John D'Errico
John D'Errico el 24 de Oct. de 2013
Why is that a problem? If you really have something specific you are trying to solve, then ask a direct question.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Exponents and Logarithms 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