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

kingfighter 2008-07-22 16:33

[求助] 符号函数,我刚入门,请帮帮我:)
 
你好:我写了个m文件,想要根据t求得y。以下是函数
clear;
syms t ;

y = 2 * t + 15;

t =1;

y

这时输出来的还是y = 2 * t + 15,我想t =1; 要得到的结果是y =17, 请问应该怎样处理呢,谢谢:)

请帮帮我,我刚入门,现在急需知道:(
邮箱发给我也行, 我的邮箱是:[email protected]
谢谢,谢谢

yfchenth2 2008-07-23 23:19

这样就可以了
clear;
syms t ;
y = 2 * t + 15;
t =1;
subs(y)


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

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