Problem 44729. Pass the Threshold!!
Write a Matlab function that will take as input a matrix of arbitrary dimensions and a scalar threshold value, and return a vector of all the elements of the matrix that exceed the threshold. The first line of your function should be function xout = threshold(xin,t) where xout is the output vector, xin is the input matrix, and t is the threshold value.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers41
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15380 Solvers
-
Project Euler: Problem 1, Multiples of 3 and 5
3017 Solvers
-
1147 Solvers
-
Check that number is whole number
3982 Solvers
-
297 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!