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!