repeat last column and last row of a matrix
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 13 Sep. 2013
Bearbeitet: Azzi Abdelmalek
am 13 Sep. 2013
A(:,end+1)=A(:,end)
For the second matrix
A(end+1,:)=A(end,:)
3 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!