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

1 次查看(过去 30 天)
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