What interpolation means and how to do it
Show older comments
Hi,
I have X data of time (date format) and Y data of depth; I need to interpolate Z data of water temperature. What in simpler terms mean and how can I do it on Matlab?
Below my sets of data and a plot so far displaying depth against time.
Thank you in advance for your help!


4 Comments
Torsten
on 17 Jan 2023
Take a look at MATLAB's "interp2" to see how you have to supply time, depth and temperature for MATLAB in order to be able to use interpolation.
Stephen23
on 17 Jan 2023
"What in simpler terms mean and how can I do it on Matlab?"
Giulia
on 18 Jan 2023
Stephan
on 18 Jan 2023
You could use datenum to create the needed input format for interp2 - but it is not recommended to use it. It's just a quick and dirty approach.
Answers (0)
Categories
Find more on Interpolation 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!