Command to delete last row and column of a matrix
73 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Swati Sarangi
le 28 Jan 2020
Commenté : Bhaskar R
le 28 Jan 2020
Hi,
Can anyone help me with the command to delete the last row and column of a 6 x 6 matrix?
Regards
Swati
0 commentaires
Réponse acceptée
Alex Mcaulley
le 28 Jan 2020
A(:,end) = []; %Delete last column
A(end,:) = []; %Delete last row
0 commentaires
Voir également
Catégories
En savoir plus sur Particle Swarm 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!