repeat last column and last row of a matrix
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Azzi Abdelmalek
le 13 Sep 2013
Modifié(e) : Azzi Abdelmalek
le 13 Sep 2013
A(:,end+1)=A(:,end)
For the second matrix
A(end+1,:)=A(end,:)
3 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!