How to replace equations in symbolic function

5 ビュー (過去 30 日間)
Anis Frej
Anis Frej 2020 年 3 月 27 日
コメント済み: Anis Frej 2020 年 3 月 27 日
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.

採用された回答

Birdman
Birdman 2020 年 3 月 27 日
By using subs function:
syms a b x
F=3*a*b;
Fnew=subs(F,{a,b},{x,1})
  9 件のコメント
Birdman
Birdman 2020 年 3 月 27 日
Is there any chance you can use a newer release of MATLAB?
Anis Frej
Anis Frej 2020 年 3 月 27 日
i will install it
Think you

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

製品


リリース

R2011a

Community Treasure Hunt

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

Start Hunting!

Translated by