|
|
|
|
|
by willis936
1532 days ago
|
|
IANA numerical expert, but I have written a lot of MATLAB in the past decade. There are NR algorithms not present in MATLAB that are very useful. When trying to find the nearest index in one very large monotonically increasing vector in another you could use interp1, but what is much faster is to do a binary search. There is no binary search function in MATLAB. It's lightning fast to use the NR-C algorithm for a binary search in MATLAB. If you want to find many nearest indexes, then interp1 likely faster. |
|