How to replace equations in symbolic function

1 Ansicht (letzte 30 Tage)
Anis Frej
Anis Frej am 27 Mär. 2020
Kommentiert: Anis Frej am 27 Mär. 2020
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.

Akzeptierte Antwort

Birdman
Birdman am 27 Mär. 2020
By using subs function:
syms a b x
F=3*a*b;
Fnew=subs(F,{a,b},{x,1})
  9 Kommentare
Birdman
Birdman am 27 Mär. 2020
Is there any chance you can use a newer release of MATLAB?
Anis Frej
Anis Frej am 27 Mär. 2020
i will install it
Think you

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Produkte


Version

R2011a

Community Treasure Hunt

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

Start Hunting!

Translated by