MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB图像处理] 新手请教Matlab曲线拟合问题 (https://www.labfans.com/bbs/showthread.php?t=10044)

交通2部 2009-11-01 10:20

新手请教Matlab曲线拟合问题
 
各位大侠:我算出了8个点数值,但是在进行曲线拟合时,老是弹出这样的错误:Warning: Polynomial is not unique; degree >= number of data points.
> In polyfit at 72
In Untitled at 61
??? Undefined function or method 'ployval' for input arguments of type 'double'.

Error in ==> Untitled at 62
Qs4=ployval(p,ua);
而我自己的相关程序如下:
ua=[ua41 ua42 ua43 ua44 ua45 ua46 ua47 ua48];
Qs=[Qs41 Qs42 Qs43 Qs44 Qs45 Qs46 Qs47 Qs48];
[p,s]=polyfit(ua,Qs,8);
Qs4=ployval(p,ua);
plot(ua,Qs4);
hold on;
plot(ua,Qs,‘b*’)
请问怎么处理啊?谢谢啦!:)


所有时间均为北京时间。现在的时间是 12:22

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.