I'm try to replace a symbolic variable at my expression. Example at image below
I'm want to get x*0.375, but (3*x)/8 isn't equal. Maybe I'm doing something wrong?

1 件のコメント

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 4 月 29 日
Instead of posting a picture, it's easier for you and for us, if you copy and paste your code.

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

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 4 月 29 日
編集済み: Azzi Abdelmalek 2016 年 4 月 29 日

1 投票

syms x a
expr=x*a
acounted=3/8
subs(expr,a,3/8)
3/8=0.3750,
Why do you think 3/8 and 0.3750 are not equal?

1 件のコメント

NIkolay Ermakov
NIkolay Ermakov 2016 年 4 月 29 日
Oh, maybe I'm really wrong. Sorry.

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by