How to determine a value within a range?

Hi,
I have a .txt file with a variety of diameters, and I am trying to find out how many diameters lie between the values 100 and 500 m. How can I do this?

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2016년 6월 6일

1 개 추천

A=randi(1000,1,100)
out=sum(A>=100 & A<=500)

카테고리

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

질문:

2016년 6월 6일

답변:

2016년 6월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by