请教关于matlab符号运算的问题。

7 ビュー (過去 30 日間)
mijot
mijot 2022 年 11 月 25 日
回答済み: gecolin 2022 年 11 月 25 日
请教一个问题?
matlab 中用syms 定了符号表达式比如:c=sym('x+y');
当我知道x,y的值比如,x=2;y=2;
怎么求,c

採用された回答

gecolin
gecolin 2022 年 11 月 25 日
用 subs 函数就好了
syms x y
c = x+y
subs(c, [x y], [2 2])

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!