How to replace equations in symbolic function

1 次查看(过去 30 天)
Good Morning,
Please I have a function F = 3*a*b
Therefore how can i change (a*b) with a variable 'x' to obtain F = 3*x
Think you.

采纳的回答

Birdman
Birdman 2020-3-27
By using subs function:
syms a b x
F=3*a*b;
Fnew=subs(F,{a,b},{x,1})
  9 个评论
Birdman
Birdman 2020-3-27
Is there any chance you can use a newer release of MATLAB?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2011a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by