Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Returning values in a matrix between 1 and 2

조회 수: 2 (최근 30일)
Kimberly
Kimberly 2014년 4월 20일
마감: MATLAB Answer Bot 2021년 8월 20일
how would I write a script that returns the values in a matrix between 1 and 2. both using for loops and not.
  댓글 수: 4
Star Strider
Star Strider 2014년 4월 20일
See the gt function and its friends (all linked-to at the end of the page).
Kimberly
Kimberly 2014년 4월 21일
I just ended up using the find function for the matrix and it worked

답변 (1개)

Walter Roberson
Walter Roberson 2014년 4월 21일
See also logical indexing
values = YourMatrix(YourMatrix > 1 & YourMatrix < 2);

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by