I have an matrixA=[1 2 8 7 9 6 10 14 89]now i want to find the nearest value for example,lets ur assume 2,the nearest values are 1,7,9,8,6for 1 it is 2,7,9please tell how to find the nearest value
MATLAB: Finding nearest vlaue
nearestvalue
Related Question
- Concatenate each element of two arrays
- How to determine if points fall above an arbitrary line
- How to remove or exclude the intersecting part from two intersecting or overlaping spheres using Matlab
- Plot of differernt regions in a matrix
- Create a matrix with multiple values at each element and apply a function to all
- Sorting and randomising a matrix according to a particular constraint.
Best Answer