giftrank.blogg.se

Matlab interp1 for extrapolation to get x for given y
Matlab interp1 for extrapolation to get x for given y






matlab interp1 for extrapolation to get x for given y

Using interp1 there's no way you can get anything other than constant-value extrapolation. interp1(x,y,xvalue)), but not the other way round (i.e. I can use this function to get a y value from an x value (i.e. I am trying to find a way to get the x value from the y value using the interp1 function. I used interp1 to interpolate from 0 to Hi(end) and to extrapolate from Hi(end) to almost 10^4 H/m with the method "spline". H_data_ini = ī_data_ini = īii = interp1(Hi,Bi,Hii,'spline','extrap')

#Matlab interp1 for extrapolation to get x for given y code

Here is the code I implemented to get the curve : mu0=4*pi*1e-7 % perméabilité du vide The break in the curve is due to the extrapolation made to reach 10^4 A/m (where the slope will become equal to a certain value mu0).

matlab interp1 for extrapolation to get x for given y

I want to have a smooth curve without any break in the middle.








Matlab interp1 for extrapolation to get x for given y