How to approximate one array based on another array?
1 view (last 30 days)
Show older comments
Hi all
So I have an array
and another array
and I want to approximate the first array intp the second so that the the code would find what time from the second array is closest to that of the first and get the indexes of that
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/526569/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/526574/image.png)
1 Comment
Image Analyst
on 21 Feb 2021
You forgot to attach the arrays in a .mat file so we can read them in and try some things. We can't run code on an image. Have you tried interp1()? Or ismember()? Or one of the elapsed time duration functions that they have? What would be your desired output for this example?
Answers (0)
See Also
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!