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 Comments

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.
What abour interp1 function?
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.
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.

Sign in to comment.

Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!