I have a set of data and i need to sort out two conditions that are mixed in a single column. How I can do that without complicating my task very much?

 Accepted Answer

madhan ravi
madhan ravi on 27 Nov 2018
Edited: madhan ravi on 27 Nov 2018
Use logical indexing to satisfy the two conditions all at once like below
x=1:10; %an example
x(x>5 & x<7)

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!