How to replace equations in symbolic function

5 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Prodotti


Release

R2011a

Community Treasure Hunt

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

Start Hunting!

Translated by