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
2016-6-6
A=randi(1000,1,100)
out=sum(A>=100 & A<=500)
类别
在 帮助中心 和 File Exchange 中查找有关 Octave 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!