How can I find numbers>30 in 810*1 matrix?

1 view (last 30 days)
Chris
Chris on 6 Sep 2022
Answered: Star Strider on 6 Sep 2022
How can I find numbers>30 in 810*1 matrix?

Answers (1)

Star Strider
Star Strider on 6 Sep 2022
This is similar to the approach with the months —
V = randi(50, 10, 1)
V = 10×1
41 19 18 21 31 40 33 35 38 8
Vgt30 = V(V>30)
Vgt30 = 6×1
41 31 40 33 35 38
.

Categories

Find more on Programming in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!