Find rows in which the first column is within a range defined by a value in another matrix.
2 次查看(过去 30 天)
显示 更早的评论
I am extracting rows from matrix acc1, which have a first column value within a certain range . This range is defined by two values taken from a double, a. I am getting error messages for this and not sure why.
q=acc1(acc1(:,1) > a(1,1) & acc1(:,1)< a(2,1) , :);
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!