repeat last column and last row of a matrix

3 visualizaciones (últimos 30 días)
mahesh chathuranga
mahesh chathuranga el 13 de Sept. de 2013
i have a matrix of 63*64.i want to repeat the last colum and get a matrix of 63*65? my next matrix is 62*65. I want to repeat the last row and get the matrix of 63*65?

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 13 de Sept. de 2013
Editada: Azzi Abdelmalek el 13 de Sept. de 2013
A(:,end+1)=A(:,end)
For the second matrix
A(end+1,:)=A(end,:)
  3 comentarios
mahesh chathuranga
mahesh chathuranga el 13 de Sept. de 2013
thank you.it's working.but i want to repeat a last column 0f my 1st matrix and repeat last row of my 2nd matrix. sorry, can you help me again?
Azzi Abdelmalek
Azzi Abdelmalek el 13 de Sept. de 2013
Your question is the same

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Import and Analysis 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