Interpolation for 231.362 iterations

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?
@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?
@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 Exchange에서 Interpolation에 대해 자세히 알아보기

질문:

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