I would like to get the specific number

2 ビュー (過去 30 日間)
Redwood
Redwood 2013 年 4 月 30 日
Dear Matlab experts,
I coded in Matlab to get the b value.
syms b
G = 7340;
G1 = 4516.881;
M1 = 5222.328;
M2 = 3264.034;
P1 = 3000;
P2 = 10000;
solve(G1 == G*(P1*exp(-b*M1/P1)/( P1*exp(-b*M1/P1)+ P2*exp(-b*M2/P2))), b)
But I got this in Matlab.
ans =
(65970697666560000*log(9312156501286059/49663631807804870))/93307147182466409
I would like to get the number, so please let me know how to fix this.
Thank you very much in advance.
Sincerely yours,
Redwood

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 4 月 30 日
syms b
G = 7340;
G1 = 4516.881;
M1 = 5222.328;
M2 = 3264.034;
P1 = 3000;
P2 = 10000;
out=solve(G1 == G*(P1*exp(-b*M1/P1)/( P1*exp(-b*M1/P1)+ P2*exp(-b*M2/P2))), b)
out=double(out)
  1 件のコメント
Redwood
Redwood 2013 年 4 月 30 日
Thank you very much!!!

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by