如何求拟合函数的导数,并求极值点?。
显示 更早的评论
用以下代码得出的拟合函数类型是cfit类型,而不是diff要求的f句柄,如何进行转化并求极值点?
ftype=fittype('fourier4');
fopt=fitoptions('Method','NonlinearLeastSquares');
[fresult,gof]=fit(X,Y1,ftype,fopt);%%fresult为拟合函数

采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Mathematics and Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!