Borrar filtros
Borrar filtros

Implement equation and solve variable

1 visualización (últimos 30 días)
Manuel
Manuel el 28 de Feb. de 2014
Editada: Anuj el 28 de Feb. de 2014
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,

Respuesta aceptada

Anuj
Anuj el 28 de Feb. de 2014
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 comentarios
Anuj
Anuj el 28 de Feb. de 2014
Editada: Anuj el 28 de Feb. de 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 el 28 de Feb. de 2014
Thank you very much, It works :)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Oceanography and Hydrology en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by