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=1930)

daiweisc 2008-03-29 10:26

[求助]如何对符号变量画图?
 
syms T A;
T是一个符号变量,最后得到的结果得到一个关于T的表达式
假如是f = 325*T+65*T^2+14
我现在想求f>0是T 的取值(可以用maple),并且想在图象中 把T直接画出来,
m=0:0.1:3;
plot(m,T,'r.')
但是却报错:
Error using ==> plot
Conversion to double from sym is not possible.

那我应该怎么办才能得到我想要的图形呢?
符号变量的这个值是不可以画图吗?即使是得到它的取值范围也不可以吗?

watcher 2008-04-02 14:36

plot不支持syms变量,建议用solve求解T后输出。


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

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