Implement equation and solve variable

조회 수: 2 (최근 30일)
Manuel
Manuel 2014년 2월 28일
편집: Anuj 2014년 2월 28일
Dear Community,
I need to implement the next equation in Matlab:
ENOB = log2 (((2^B)*((2^L+1)^(1/2))*R^(L+0.5))/pi^L)
And from the input variables B, ENOB and R, extract the Output L. Any idea about how to make it?
Thanks in advance,

채택된 답변

Anuj
Anuj 2014년 2월 28일
syms L
ENOB=input('ENOB ');
R=input('R ');
B=input('B ');
solve(ENOB - (log2 (((2^B)*((2^L+1)^(1/2))*R^(L+0.5))/pi^L)))
  댓글 수: 3
Anuj
Anuj 2014년 2월 28일
편집: Anuj 2014년 2월 28일
You can do this-
L=solve(ENOB - (log2 (((2^B)*((2^L+1)^(1/2))*R^(L+0.5))/pi^L)))
this will assign the value to variable L, it won't be empty anymore.
Manuel
Manuel 2014년 2월 28일
Thank you very much, It works :)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Oceanography and Hydrology에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by