How to determine a value within a range?
Mostrar comentarios más antiguos
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?
Respuestas (1)
Azzi Abdelmalek
el 6 de Jun. de 2016
A=randi(1000,1,100)
out=sum(A>=100 & A<=500)
Categorías
Más información sobre Octave en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!