MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   函数出错,请高人指点 (https://www.labfans.com/bbs/showthread.php?t=6135)

gogo_vip 2009-01-04 20:12

函数出错,请高人指点
 
我的代码就两行,我想画一个Rp和Vo的曲线图:
Rp=1:100:3000;
Vo=((Rp*(200+3000-Rp))/(600000+6000Rp-2Rp^2))-0.75;

??? Vo=((Rp*(200+3000-Rp))/(600000+6000Rp-2Rp^2))-0.75 |
Error: Unexpected MATLAB expression.

结果出现以上错误提示信息,怎么修改呀?
谢谢各位大侠。:frown:

gogo_vip 2009-01-04 20:15

回复: 函数出错,请高人指点
 
在线等,急:cool:

gogo_vip 2009-01-04 20:30

回复: 函数出错,请高人指点
 
本人刚学的,第一个程序就这样挂掉了,很不甘心呀:sweat:

gogo_vip 2009-01-04 20:33

回复: 函数出错,请高人指点
 
有可能我没有把问题说清楚,[COLOR="Red"]我的代码是前两行,出错信息是后两行。[/COLOR]

remnant 2009-01-04 21:43

回复: 函数出错,请高人指点
 
Vo=( (Rp .* (200+3000-Rp) ) ./ (600000+6000*Rp-2*Rp.^2) ) - 0.75;


所有时间均为北京时间。现在的时间是 11:27

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