How to replace equations in symbolic function

1 view (last 30 days)
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.

Accepted Answer

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

Sign in to comment.

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2011a

Community Treasure Hunt

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

Start Hunting!