フィルターのクリア

How to get the value of interpolated data for 2D table in matlab

7 ビュー (過去 30 日間)
Harish M Y
Harish M Y 2022 年 7 月 1 日
回答済み: Dhritishman 2022 年 7 月 3 日
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

回答 (2 件)

Kshittiz Bhardwaj
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)
For interpolating values, you can use the interp1 function and it would do the interpolation for you

Dhritishman
Dhritishman 2022 年 7 月 3 日
Firstly, you need to import the file in MATLAB as a table. You can use Readtable to do that.
T = readtable(filename);
To interpolate the values, you can use the interp1 function. You can use the appropriate function depending on your question.

カテゴリ

Help Center および File ExchangeTables についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by