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

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일

0 개 추천

syms B
sym_b=solve(512*512*log2(B)/2==520000)
vpa(sym_b)
ans =
15.641263534925078400119749631703

댓글 수: 5

sir i have to satisfy this equation by choosing which value of B will satisfy the equation
Walter Roberson
Walter Roberson 2014년 4월 2일
편집: Walter Roberson 2014년 4월 2일
The answer is 15.641263534925078400119749631703 approximately, and "A Jenkins" shows one way it can be calculated.
sir i am getting error like this ?? Error using ==> mupadmex Error in MuPAD command: cannot differentiate equation [numeric::fsolve]
Error in ==> sym.sym>sym.mupadmexnout at 2018 out = mupadmex(fcn,args{:});
Error in ==> solve at 76 [symvars,R] = mupadmexnout('symobj::solvefull',eqns,vars);
Error in ==> Untitled7 at 2 sym_b=solve('(512*512*log2(B))/2==520000'); can u say me how to solve asap
sir i am getting can say me the code .....
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일

0 개 추천

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".

댓글을 달려면 로그인하십시오.

질문:

2014년 4월 2일

댓글:

2014년 4월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by