How to replace equations in symbolic function

11 vues (au cours des 30 derniers jours)
Anis Frej
Anis Frej le 27 Mar 2020
Commenté : Anis Frej le 27 Mar 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.

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Produits


Version

R2011a

Community Treasure Hunt

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

Start Hunting!

Translated by