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,

 Akzeptierte Antwort

Anuj
Anuj am 28 Feb. 2014

0 Stimmen

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 Kommentare

Manuel
Manuel am 28 Feb. 2014
It works perfectly, but I need to have the output L as a normal varible to be use after the calculations, and with the simbolic variable it Looks empty..
Anuj
Anuj am 28 Feb. 2014
Bearbeitet: Anuj am 28 Feb. 2014
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 am 28 Feb. 2014
Thank you very much, It works :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Partial Differential Equation Toolbox finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 28 Feb. 2014

Bearbeitet:

am 28 Feb. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by