Command to delete last row and column of a matrix
73 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Swati Sarangi
il 28 Gen 2020
Commentato: Bhaskar R
il 28 Gen 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 Commenti
Risposta accettata
Alex Mcaulley
il 28 Gen 2020
A(:,end) = []; %Delete last column
A(end,:) = []; %Delete last row
0 Commenti
Vedere anche
Categorie
Scopri di più su Particle Swarm in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!