Hello all,
I am trying to interpolate too many iterations;
I have r, theta and Bz. This is magnetic field calculation. I need to interpolate the offset points of double to integer.
The table is attached.
The attached document is only part of the table. All iterations are completely 231.362 pieces.
How can I handle it?
Many thanks in advance.

6 件のコメント

Berat Can Karatas
Berat Can Karatas 2019 年 11 月 4 日
編集済み: Berat Can Karatas 2019 年 11 月 4 日
I tried with MS Excel but when I worked with all points which are 231.362 pieces, the Excel calculate with deviation. Also deviation is too high for using.
darova
darova 2019 年 11 月 4 日
What abour interp1 function?
Richard Brown
Richard Brown 2019 年 11 月 5 日
I'm unclear on what you actually want to do. What are you interpolating? Or do you just want to round the floating point values?
Berat Can Karatas
Berat Can Karatas 2019 年 11 月 5 日
@darova: This values depent on 2-different values. For example, I want to show that in this table.
Untitled.jpg
@Richard Brown: Yes, actually I want the offset points on integer values. But problem is these values are in cylindrical coordinates which mean r is length, and theta is an angle display in degrees.
Pastly, I used scattered interpolation function on these values and I found an answer. However, I could not create a table. I need to calculate on table, and create a table.
R=matrix_name{:,1};
theta=matrix_name{:,2};
Bz=matrix_name{:,3};
X=scatteredInterpolant(r,theta,Bz);
NewPointBz=X(2,63); % this equation gives an answer but I need all of them which are 231.362 points.
Richard Brown
Richard Brown 2019 年 11 月 5 日
So you are looking to calculate for integer values of r and θ where you have measured values that are not quite integers?
Berat Can Karatas
Berat Can Karatas 2019 年 11 月 5 日
@Richard Brown: Yes, I calculated 231.362 points of .
Just I need to create a table in Matlab with interpolation for integer number that you may see above table.
NewPointBz=X(r_int,theta_int);
I did found individually with above code, but I need to find automatically create all of them with table.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeInterpolation についてさらに検索

質問済み:

2019 年 11 月 4 日

コメント済み:

2019 年 11 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by