I need to locate and pull out a value between 2 numbers within a random matrix. For example, [88 65 98 34 100] I'd want to pull out all numbers between 95 and 100 which would be 98 and 100.

 채택된 답변

David Hill
David Hill 2022년 9월 8일

0 개 추천

m=[88 65 98 34 100];
m(m>=95&m<=100)
ans = 1×2
98 100

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Random Number Generation에 대해 자세히 알아보기

제품

릴리스

R2022a

태그

질문:

2022년 9월 8일

답변:

2022년 9월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by