![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/17204218_1578337983213_DEF.jpg)
Ernest Nachaki
Followers: 0 Following: 0
Feeds
已回答
How to find the index of the closest value to some number in 1D array ?
Try this index = fix(interp1(array,find(array),value));
How to find the index of the closest value to some number in 1D array ?
Try this index = fix(interp1(array,find(array),value));
2 years 前 | 0