Problem 54975. Find Min and Max Differences in a Vector
Given an array of integers, return the absolute largest and smallest (non zero) difference between any two numbers in the array.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers45
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
48170 Solvers
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15467 Solvers
-
How to find the position of an element in a vector without using the find function
2705 Solvers
-
1265 Solvers
-
448 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!