MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] [求助]解超越方程 (https://www.labfans.com/bbs/showthread.php?t=11493)

霹雳熊猫 2010-05-09 23:27

[求助]解超越方程
 
本人要画一个曲线,程序如下:(p为19维行向量,q为19维列向量)
p=[0.19
0.78
0.96
1.31
2.78
3.16
4.15
4.67
4.85
6.5
7.35
8.01
8.27
12.0
13.95
16.0
21.21
27.11
34.95]';
q=[-1.660731207
-0.248461359
-0.040821995
0.270027137
1.022450928
1.150572028
1.423108334
1.541159072
1.578978705
1.871802177
1.994700313
2.080690761
2.112634509
2.48490665
2.635479508
2.772588722
3.054472769
3.299902664
3.553918469];
fplot('[(p.^x)*q/sum(p.^x)-1/x-sum(q)/19,0]',[0.9,1])

运行后显示
[COLOR="Red"]??? Error using ==> inline.feval
Not enough inputs to inline function.

Error in ==> fplot at 102
x = xmin; y = feval(fun,x,args{4:end});[/COLOR]

请高人指教~Thanks!


所有时间均为北京时间。现在的时间是 05:08

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