| 7 | 1/1 | 返回列表 |
| 查看: 1552 | 回復(fù): 6 | |||
[交流]
【求助】MATLAB錯誤
|
|
為什么此程序運行會出現(xiàn)這個錯誤: ??? Error using ==> diff Function 'diff' is not supported for class 'cfit'. Error in ==> cfit.plot at 65 if any(diff(xdata)<0) Error in ==> CO2 at 20 plot(x,yy1,'g-'); |
» 搶金幣啦!回帖就可以得到:
+1/192
+1/183
+1/94
+1/80
+1/40
+1/36
+1/29
+1/11
+1/10
+1/9
+1/7
+1/6
+1/5
+1/5
+1/4
+1/3
+1/2
+1/2
+1/1
+1/1
版主 (職業(yè)作家)
|
恩 對的,具體的方法可以由cflibhelp得到~ 祝你好運 For curves: GROUP DESCRIPTION distribution - distribution models such as Weibull exponential - exponential function and sum of two exponential functions fourier - up to eight terms of fourier series gaussian - sum of up to eight gaussian models power - power function and sum of two power functions rational - rational equation models, up to 5th degree / 5th degree sin - sum of up to eight sin functions spline - splines interpolant - interpolating models polynomial - polynomial models up to degree nine For surfaces: GROUP DESCRIPTION interpolant - interpolating models polynomial - polynomial models up to degree five lowess - lowess smoothing models To list only the model equations for a group, type CFLIBHELP followed by the group name. Example: cflibhelp polynomial All models in the Curve Fitting Library: DISTRIBUTION MODELS MODELNAME EQUATION weibull Y = a*b*x^(b-1)*exp(-a*x^b) EXPONENTIAL MODELS MODELNAME EQUATION exp1 Y = a*exp(b*x) exp2 Y = a*exp(b*x)+c*exp(d*x) FOURIER SERIES MODELNAME EQUATION fourier1 Y = a0+a1*cos(x*p)+b1*sin(x*p) fourier2 Y = a0+a1*cos(x*p)+b1*sin(x*p)+a2*cos(2*x*p)+b2*sin(2*x*p) fourier3 Y = a0+a1*cos(x*p)+b1*sin(x*p)+...+a3*cos(3*x*p)+b3*sin(3*x*p) ... fourier8 Y = a0+a1*cos(x*p)+b1*sin(x*p)+...+a8*cos(8*x*p)+b8*sin(8*x*p) where p = 2*pi/(max(xdata)-min(xdata)). GAUSSIAN SUMS (Peak fitting) MODELNAME EQUATION gauss1 Y = a1*exp(-((x-b1)/c1)^2) gauss2 Y = a1*exp(-((x-b1)/c1)^2)+a2*exp(-((x-b2)/c2)^2) gauss3 Y = a1*exp(-((x-b1)/c1)^2)+...+a3*exp(-((x-b3)/c3)^2) ... gauss8 Y = a1*exp(-((x-b1)/c1)^2)+...+a8*exp(-((x-b8)/c8)^2) INTERPOLANT INTERPTYPE DESCRIPTION Curves & Surfaces: linearinterp linear interpolation nearestinterp nearest neighbor interpolation cubicinterp cubic spline interpolation Curves Only: pchipinterp shape-preserving (pchip) interpolation Surfaces Only: biharmonicinterp biharmonic (MATLAB 4 griddata) interpolation POLYNOMIAL MODELS MODELNAME EQUATION Curves: poly1 Y = p1*x+p2 poly2 Y = p1*x^2+p2*x+p3 poly3 Y = p1*x^3+p2*x^2+...+p4 ... poly9 Y = p1*x^9+p2*x^8+...+p10 Surfaces: Model names for polynomial surfaces are 'polyij', where i is the degree in x and j is the degree in y. The maximum for both i and j is five. The degree of the polynomial is the maximum of i and j. The degree of x in each term will be less than or equal to i, and the degree of y in each term will be less than or equal to j. For example: poly21 Z = p00 + p10*x + p01*y + p20*x^2 + p11*x*y poly13 Z = p00 + p10*x + p01*y + p11*x*y + p02*y^2 + p12*x*y^2 + p03*y^3 poly55 Z = p00 + p10*x + p01*y +...+ p14*x*y^4 + p05*y^5 POWER MODELS MODELNAME EQUATION power1 Y = a*x^b power2 Y = a*x^b+c RATIONAL MODELS Rational Models are polynomials over polynomials with the leading coefficient of the denominator set to 1. Model names are 'ratij', where i is the degree of the numerator and j is the degree of the denominator. The degrees go up to five for both the numerator and the denominator. For example: MODELNAME EQUATION rat02 Y = (p1)/(x^2+q1*x+q2) rat21 Y = (p1*x^2+p2*x+p3)/(x+q1) rat55 Y = (p1*x^5+...+p6)/(x^5+...+q5) SUM OF SINE FUNCTIONS MODELNAME EQUATION sin1 Y = a1*sin(b1*x+c1) sin2 Y = a1*sin(b1*x+c1)+a2*sin(b2*x+c2) sin3 Y = a1*sin(b1*x+c1)+...+a3*sin(b3*x+c3) ... sin8 Y = a1*sin(b1*x+c1)+...+a8*sin(b8*x+c8) SPLINES Spline models are only supported for curve fitting, not for surface fitting SPLINETYPE DESCRIPTION cubicspline cubic interpolating spline smoothingspline smoothing spline LOWESS Lowess models are only supported for surface fitting, not for curve fitting MODELNAME DESCRIPTION lowess local linear regression loess local quadratic regression |
| 7 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 332求調(diào)劑 +8 | 蕉蕉123 2026-03-28 | 8/400 |
|
|---|---|---|---|---|
|
[考研] 一志愿鄭州大學(xué),080500學(xué)碩,總分317分求調(diào)劑 +6 | 舉個栗子oi 2026-03-24 | 7/350 |
|
|
[考研] 352分-085602-一志愿985 +5 | 海納百川Ly 2026-03-29 | 5/250 |
|
|
[考研] 300求調(diào)劑,材料科學(xué)英一數(shù)二 +8 | leaflight 2026-03-24 | 8/400 |
|
|
[考研] 0703化學(xué)調(diào)劑,求導(dǎo)師收 +9 | 天天好運來上岸?/a> 2026-03-24 | 10/500 |
|
|
[考研] 320分,材料與化工專業(yè),求調(diào)劑 +9 | 一定上岸aaa 2026-03-27 | 13/650 |
|
|
[考研] 317求調(diào)劑 +6 | 十閑wx 2026-03-24 | 6/300 |
|
|
[考研] 考研調(diào)劑 +4 | Sanmu-124 2026-03-26 | 4/200 |
|
|
[考研] 283求調(diào)劑(080500) +4 | A child 2026-03-27 | 4/200 |
|
|
[考研] 安徽大學(xué)專碩生物與醫(yī)藥專業(yè)(086000)324分,英語已過四六級,六級521,求調(diào)劑 +4 | 美味可樂雞翅 2026-03-26 | 4/200 |
|
|
[考研] 調(diào)劑 +3 | 李嘉圖·S·路 2026-03-27 | 3/150 |
|
|
[考研] 調(diào)劑推薦 +5 | 清酒714 2026-03-26 | 6/300 |
|
|
[考研] 286求調(diào)劑 +4 | lim0922 2026-03-26 | 4/200 |
|
|
[考研] 276求調(diào)劑。有半年電池和半年高分子實習(xí)經(jīng)歷 +10 | 材料學(xué)257求調(diào)劑 2026-03-23 | 11/550 |
|
|
[考研] 生物學(xué) 296 求調(diào)劑 +4 | 朵朵- 2026-03-26 | 6/300 |
|
|
[考研]
|
平樂樂樂 2026-03-26 | 4/200 |
|
|
[考研] 一志愿 南京郵電大學(xué) 288分 材料考研 求調(diào)劑 +3 | jl0720 2026-03-26 | 3/150 |
|
|
[考研] 302求調(diào)劑 +4 | 錦衣衛(wèi)藤椒 2026-03-25 | 4/200 |
|
|
[考研] 0854電子信息求調(diào)劑 +7 | α____ 2026-03-22 | 9/450 |
|
|
[考研] 347求調(diào)劑 +4 | L when 2026-03-25 | 4/200 |
|