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?

 채택된 답변

madhan ravi
madhan ravi 2018년 11월 27일
편집: madhan ravi 2018년 11월 27일

0 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

질문:

2018년 11월 27일

편집:

2018년 11월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by