store last m elemnts of a matrix to another matrix
2 ビュー (過去 30 日間)
古いコメントを表示
Hi all, is there any MATLAB function to store the last m elemnts of a matrix to another matrix?
Thanks
0 件のコメント
採用された回答
その他の回答 (1 件)
Krishnendu Mukherjee
2012 年 2 月 24 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!