필터 지우기
필터 지우기

Deleting rows in a matrix based on a column's value

조회 수: 1 (최근 30일)
Daniel Ring
Daniel Ring 2018년 9월 25일
편집: KALYAN ACHARJYA 2018년 9월 25일
I have a 17 X 65536 matrix. I need to delete all rows in the matrix who have a value in row 17 less than a certain value and greater than a certain value. How do I do this and create a new matrix?
  댓글 수: 1
KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 9월 25일
As your question is confusing for me, though I have answered the question, hope you can replicate or modify the answer as per your requirements.

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

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 9월 25일
편집: KALYAN ACHARJYA 2018년 9월 25일
Here element value less than th1 and Greater Than th2 at clom. 1
A(A(:,1)<th1,:)=[];
A(A(:,1)>th2,:)=[]
Below code delete all rows having the first colm element less than 4
A(A(:,1)<4,:)=[]

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by