在matlab中如何实现简单的公式推导?例如:f=x+y,其中x=5+a/2 with a=3s,y=3+b/4 with b=8s,求 f(s) 的表达式?用matlab 实现~

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/29 02:30:54

在matlab中如何实现简单的公式推导?
例如:f=x+y,其中x=5+a/2 with a=3s,y=3+b/4 with b=8s,求 f(s) 的表达式?用matlab 实现~

syms s
a=3*s;
b=8*s;
x=5+a/2;
y=3+b/4;
f=x+y