一组离散的数据,经过Curve Fitting Tool插值拟合后生成了一条曲线,然后对这条曲线求导、
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
华纳公司游戏网址【微8785092】
am 19 Mai 2023
Beantwortet: vutjbceng
am 19 Mai 2023
CFTL对离散数据插值拟合的结果如图:
,因为是插值拟合,无法得到拟合后的函数表达式,所以我选择了生成代码
,然后在m文件中调用“[fitresult,gof]=createFit_G(H_G, B_G)”,其中fitresult就是拟合后的函数,但是它的变量类型是cfit格式,matlab自带的求导函数不能应用到这种类型的变量,因此想求助大家,这种情况应该怎么解决?谢谢各位了
,因为是插值拟合,无法得到拟合后的函数表达式,所以我选择了生成代码
,然后在m文件中调用“[fitresult,gof]=createFit_G(H_G, B_G)”,其中fitresult就是拟合后的函数,但是它的变量类型是cfit格式,matlab自带的求导函数不能应用到这种类型的变量,因此想求助大家,这种情况应该怎么解决?谢谢各位了0 Kommentare
Akzeptierte Antwort
vutjbceng
am 19 Mai 2023
[xData, yData] = prepareCurveData( H, B );
ft = fittype( 'poly4' );
[fitresult, gof] = fit( xData, yData, ft, 'Normalize', 'on' );
fitresult
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Linear and Nonlinear Regression finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!