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!