extract column index of a particular values in the matrix

조회 수: 10 (최근 30일)
Turbulence Analysis
Turbulence Analysis 2021년 2월 2일
댓글: Turbulence Analysis 2021년 2월 2일
Hi,
I got 1 x 10000 matrix named x1 (attached here), I intend to extrcat the indices of the colum which got the values in the range of 500 to 550.. Is there away to extract the indices of the column based on criteria...

채택된 답변

Ive J
Ive J 2021년 2월 2일
B = x1(x1 <= 550 & x1 >= 500);
  댓글 수: 1
Turbulence Analysis
Turbulence Analysis 2021년 2월 2일
Thanks, Ive. Actually, the requirement is to find along with indices,
so I have used as follows,,
B = find(x1 <= 550 & x1 >= 500);

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by