フィルターのクリア

why the result is not decimal?

2 ビュー (過去 30 日間)
Eliza
Eliza 2017 年 11 月 16 日
回答済み: Star Strider 2017 年 11 月 16 日
here is my code i wanna display b as decimal not the division operation as you see, any help please?
syms x y z
[A, b] = equationsToMatrix([25*x + 5*y + z==10.8, 64*x + 5*y + z == 11.2,...
24*x + 12*y + z == 20.2],[x,y,z])
A =
[ 25, 5, 1]
[ 64, 5, 1]
[ 24, 12, 1]
b =
54/5
56/5
101/5

採用された回答

Star Strider
Star Strider 2017 年 11 月 16 日
Use the vpa function or the double function.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumbers and Precision についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by