How can I build expression dynamically by variable.

If I Have An Expression "ax + bx + cx = 0"
Also having a variable of this expression "a"
If I Pass This Expression To a Function With Variable GetExpression(exp, var){
Expression Should be return as "a = -(bx + cx)/x"
return "a = -(bx + cx)/x"
}
Variable Can be changed As Well as Expression Can Be Changed..

1 件のコメント

Stephen23
Stephen23 2019 年 12 月 9 日
@Sana Ullah: do you have the Symbolic Toolbox available to use?

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSymbolic Math Toolbox についてさらに検索

質問済み:

2019 年 12 月 9 日

コメント済み:

2019 年 12 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by