フィルターのクリア

solve matlab equation( 512*512*lo​g2(B))/2>=​=520000

1 回表示 (過去 30 日間)
vaka sindhu
vaka sindhu 2014 年 4 月 2 日
コメント済み: A Jenkins 2014 年 4 月 2 日
sir i am new to this matlab i want to satisfy the equation (512*512*log2(B))/>=520000 by keeping what value of B this equation will be satisfied answer is 16 .. i want how to do code for this equation in matlab by taking B values automatically to satisfy this equation

回答 (2 件)

A Jenkins
A Jenkins 2014 年 4 月 2 日
syms B
sym_b=solve(512*512*log2(B)/2==520000)
vpa(sym_b)
ans =
15.641263534925078400119749631703
  5 件のコメント
vaka sindhu
vaka sindhu 2014 年 4 月 2 日
sir i am getting can say me the code .....
A Jenkins
A Jenkins 2014 年 4 月 2 日
In older versions of MATLAB, you can try rearranging:
sym_b=solve((512*512*log2(B))/2-520000)

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


Star Strider
Star Strider 2014 年 4 月 2 日
The easiest way is to take the base-2 antilog of both sides. You get the answer directly:
B = 2^(2*520000/(512^2))
gives:
B =
15.6413e+000
  1 件のコメント
A Jenkins
A Jenkins 2014 年 4 月 2 日
That was going to be my next proposal too, but then we are just teaching math, and not "code for this equation in matlab by taking B values automatically to satisfy this equation".

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by