Find Nearest Value In Array Matlab Function