repeat last column and last row of a matrix
3 views (last 30 days)
Show older comments
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?
0 Comments
Accepted Answer
Azzi Abdelmalek
on 13 Sep 2013
Edited: Azzi Abdelmalek
on 13 Sep 2013
A(:,end+1)=A(:,end)
For the second matrix
A(end+1,:)=A(end,:)
3 Comments
More Answers (0)
See Also
Categories
Find more on Data Import and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!