how many number in col have certain number
Show older comments
How do u input a code that indicates how many how numbers in a col vector are greater than a certain number?
i.e. x has 5000 rows, and I am trying to see which how many rows are greater than 0.
Answers (1)
dpb
on 13 May 2014
sum(x>0)
Categories
Find more on Vehicle Dynamics Blockset 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!