Command to delete last row and column of a matrix
47 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Swati Sarangi
am 28 Jan. 2020
Kommentiert: Bhaskar R
am 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 Kommentare
Akzeptierte Antwort
Alex Mcaulley
am 28 Jan. 2020
A(:,end) = []; %Delete last column
A(end,:) = []; %Delete last row
0 Kommentare
Siehe auch
Kategorien
Mehr zu Logical 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!