필터 지우기
필터 지우기

How can I retain original subscript indices for a matrix subset?

조회 수: 2 (최근 30일)
Stephanie Diaz
Stephanie Diaz 2017년 6월 8일
댓글: KSSV 2017년 6월 9일
Hi,
I have a matrix subset (from the original matrix, C) that I have created with the following code:
C_sub = C(((minx):(maxx)),((miny):(maxy)));
C_sub now has its own subscript indices, likely due to the fact that matlab now sees it as its own matrix. I need C_sub to somehow retain the subscript indices (or linear indices) from the original matrix (matrix C),or some way to call on the original indices. Is there a way to do this?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by