MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   【求助】ezplot 画图问题 (https://www.labfans.com/bbs/showthread.php?t=1305)

apal0069 2008-01-24 17:34

【求助】ezplot 画图问题
 
如果式子中有变量 怎么能让ezplot函数识别呢
比如简单说 S=1
ezplot('y+x-S=0')

运行总显示?? Error using ==> char
Cell elements must be character arrays.

怎么能正常画出来呢?

谢谢:)

oneday2010 2008-01-24 19:38

syms s
ezplot(subs('x+y+s=0',s,1))

apal0069 2008-01-24 20:20

可是我那个S=1 是个变量 是上一步得出的值 (是个数值) 如果改变初始条件 是要变的
怎么能避免呢 ? 不能把S的值写入式子 不然要是改了初始条件 图像无法更新啊 怎么办呢?

oneday2010 2008-01-25 21:00

syms s
for i=1:10
ezplot(subs('x+y+s=0',s,i))
end
这样s不就可变了吗

wxw0827 2009-03-06 10:47

回复: 【求助】ezplot 画图问题
 
学习中。。。。。。。。。

shareshow 2009-10-07 09:58

回复: 【求助】ezplot 画图问题
 
学习ing。。。。。。


所有时间均为北京时间。现在的时间是 02:43

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