If
x = [2 6 4 9 -10 3 1 5 -10]
then the output should be 9, because last minimum value (-10) lies at the 9th position.
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers97
Suggested Problems
-
Select every other element of a vector
37063 Solvers
-
Find the longest sequence of 1's in a binary sequence.
6822 Solvers
-
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
964 Solvers
-
Find out total non zero element of matrix
288 Solvers
-
Matlab Basics - Set unwanted parts of a vector to zero
263 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
The second test is wrong. 4 is not < 1.
The example seems to be wrong as well. The output should be 9 (as stated in test 1 which uses the same vector), not 7.
thanks Sean and Jon for comment on problem, I have corrected the same.