for and if statements
2 views (last 30 days)
Show older comments
I need help generating a code that does the following
For and if Generate an array of 10 random numbers between 1 and 100. Then find out how many of the elements are between 1 and 25, how many between 25 and 75 and how many between 75 and 100.
1 Comment
See Also
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!