Returning values in a matrix between 1 and 2
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
how would I write a script that returns the values in a matrix between 1 and 2. both using for loops and not.
댓글 수: 4
Azzi Abdelmalek
2014년 4월 20일
Is this a homework?
Kimberly
2014년 4월 20일
Star Strider
2014년 4월 20일
Kimberly
2014년 4월 21일
답변 (1개)
Walter Roberson
2014년 4월 21일
See also logical indexing
values = YourMatrix(YourMatrix > 1 & YourMatrix < 2);
댓글 수: 0
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!