如何解决matlab中的n*log2(n)= A?

zoe*_*oey 3 matlab equation-solving

n*log2(n) = A,具有A已知值.我如何n在Matlab中解决?注意,n不必是整数.

Gun*_*uyf 6

或者通过分析解决方程并使用:

n = A*log(2)/lambertw(A*log(2))
Run Code Online (Sandbox Code Playgroud)

  • 我不得不看.FEX上有一个lambertw工具.http://www.mathworks.com/matlabcentral/fileexchange/3644-real-values-of-the-lambert-w-function (4认同)