How to get the value of interpolated data for 2D table in matlab
6 次查看(过去 30 天)
显示 更早的评论
Hi,
Below is the table I want to read in matlab and get the values for the specified x and y.
Also, if the value of x and y is in between the specified values, how do I get the interpolated value. Please let me know how to code this
thanks in advance
0 个评论
回答(2 个)
Kshittiz Bhardwaj
2022-7-1
编辑:Kshittiz Bhardwaj
2022-7-1
Hello Harish,
You can use the readTable function to import the excel file in matlab as a table
Eg: T = readtable(filename)
refer: readTable documentation
For interpolating values, you can use the interp1 function and it would do the interpolation for you
refer: interp1 documentation
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!