I had a matrix s of size 4*12540, i want to use only 4*4 of this matrix how should i remove extra columns?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
amina mehmood
am 31 Mär. 2014
Kommentiert: amina mehmood
am 31 Mär. 2014
I had a matrix s of size 4*12540, i want to use only 4*4 of this matrix how should i remove extra columns?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Joseph Cheng
am 31 Mär. 2014
Bearbeitet: Joseph Cheng
am 31 Mär. 2014
If you want to completely remove these columns you can use [] ;
example:
Testmatrix = rand(4,12540);
Testmatrix(:,5:end) = [];%All rows in columns 5 through end are blank;
0 Kommentare
Siehe auch
Kategorien
Mehr zu Matrices and Arrays 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!