Answers
Matlab Cody Problem 29. Nearest Numbers
- Institution
- Massachusetts Institute Of Technology
Problem 29. Nearest Numbers Created by Cody Team in Cody Challenge Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3 10 0 -3.1]) index1 = 1 index2 = 3
[Show more]