store last m elemnts of a matrix to another matrix
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi all, is there any MATLAB function to store the last m elemnts of a matrix to another matrix?
Thanks
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Krishnendu Mukherjee
am 24 Feb. 2012
suppose A=[1 2 3 4 5 6 7 8 9 10] last 2 element are to be stored i=1; for j=m:size(A(1,:)) Anew(1,i)=A(1,j) end
this is if your matrix is of one row. but u hv nt mention the dimension of the matrix
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!