How do I reinterpolate density into uniform depth values?
1 次查看(过去 30 天)
显示 更早的评论
I have density values from ~245 files from hydrographic data. So each file contains a list of density values with depth. I want to reinterpolate the density values for each file to have uniform depth values so I can calculate drho/dx.
0 个评论
回答(1 个)
Ashish Mishra
2020-12-11
Hi Shayma
2 . Store the values in variables like X=A(:,1);
4. Use interp1 as well mention whch kind of interpolation you want (spline,cubic or linear), This function
will return the new set of interpolated values.
Keep on plotting values to visualize better.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!