How to replace equations in symbolic function

2 visualizaciones (últimos 30 días)
Anis Frej
Anis Frej el 27 de Mzo. de 2020
Comentada: Anis Frej el 27 de Mzo. de 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.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Function Creation en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2011a

Community Treasure Hunt

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

Start Hunting!

Translated by