Data out of cfit of sfit Matlab object -


is there way extract data out of cfit or sfit object? want extract matrix of fitted values out of sfit object without accessing every element of fit (very slow in 240x320 ). problem equivalent extraction of vector out of cfit object. there method defined on object, or similar?

please, post code! thanks, nikola

you can access element of sfit object sfit.element. example:

sf = fit([x,y],z,'poly23'); sf       linear model poly23:      sf(x,y) = p00 + p10*x + p01*y + p20*x^2 + p11*x*y + p02*y^2 + p21*x^2*y                     + p12*x*y^2 + p03*y^3      coefficients (with 95% confidence bounds):        p00 =       1.118  (0.9149, 1.321)        p10 =  -0.0002941  (-0.000502, -8.623e-05)        p01 =       1.533  (0.7032, 2.364)        p20 =  -1.966e-08  (-7.084e-08, 3.152e-08)        p11 =   0.0003427  (-0.0001009, 0.0007863)        p02 =      -6.951  (-8.421, -5.481)        p21 =   9.563e-08  (6.276e-09, 1.85e-07)        p12 =  -0.0004401  (-0.0007082, -0.0001721)        p03 =       4.999  (4.082, 5.917) 

to 1 element of sf:

sf.p03  ans =      4.9994 

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -