repeat last column and last row of a matrix

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?

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 9월 13일
편집: Azzi Abdelmalek 2013년 9월 13일

1 개 추천

A(:,end+1)=A(:,end)
For the second matrix
A(end+1,:)=A(end,:)

댓글 수: 3

thank you very much
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?
Your question is the same

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by