repeat last column and last row of a matrix

1 次查看(过去 30 天)
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
A(:,end+1)=A(:,end)
For the second matrix
A(end+1,:)=A(end,:)
  3 个评论
mahesh chathuranga
mahesh chathuranga 2013-9-13
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?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Import and Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by