How to find all elements in a matrix less than a certain number?
Show older comments
I have a matrix M, I want to find all elements in this matrix that are less than -50 to be produced in a column vector
Answers (1)
Walter Roberson
on 23 Jan 2021
0 votes
Hint: use logical indexing
Categories
Find more on Creating and Concatenating Matrices 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!