フィルターのクリア

Implement equation and solve variable

1 回表示 (過去 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 Center および File ExchangeOceanography and Hydrology についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by