get output of fit curve in visual studio(.dll)

2 views (last 30 days)
hi i am use matlab dll in visual studio and i can get result correctly but in my matlab code i use fit function and result are formula and p1,p2,... how can i get this variable in .net
my code f=fit(semivariogram.range',semivariogram.silt',type_fit);
result(my question is how get c parameter in .net)
c =
Linear model Poly4:
c(x) = p1*x^4 + p2*x^3 + p3*x^2 + p4*x + p5
Coefficients (with 95% confidence bounds):
p1 = -4.14e-05 (-8.349e-05, 6.923e-07)
p2 = 0.003655 (-0.0005761, 0.007886)
p3 = -0.1063 (-0.2505, 0.03796)
p4 = 1.202 (-0.7036, 3.108)
p5 = -1.933 (-9.72, 5.853)
visual studio code
Dim resualt() As Object = func.variogram1(3, addressfile, nn, ComboBox1.SelectedItem.ToString)
error visual studio
Object reference not set to an instance of an object.

Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!