Solve function:Error using sym/solve>getEqns
이전 댓글 표시
I am having a trouble using the solve function to solve for B
syms B
M= 1024;
solve('1e-6 = (4/log2(M))*qfunc(sqrt(3*B*log2(M)/(M-1)))',B)
I am getting these now
Error using sym/solve>getEqns
List of equations must not be empty.
Error in sym/solve (line 226)
[eqns,vars,options] = getEqns(varargin{:});
Error in untitled (line 65)
solve('1e-6 = (4/log2(M))*qfunc(sqrt(3*B*log2(M)/(M-1)))',B)
답변 (2개)
Torsten
2022년 4월 1일
1 개 추천
"qfunc" does not accept symbolic input, and your B is symbolic.
syms B symqfunc(x)
M= 1024;
symqfunc(x) = erfc(x/sqrt(2)) / 2;
Eqn = 1e-6 == (4/log2(M))*symqfunc(sqrt(3*B*log2(M)/(M-1)));
solve(Eqn,B)
.
댓글 수: 5
Abdelaziz Gohar
2022년 4월 4일
Star Strider
2022년 4월 4일
My pleasure!
Esteban Patricio Tipan Mantilla
2024년 1월 12일
could you explain this line pls
symqfunc(x) = erfc(x/sqrt(2)) / 2;
Star Strider
2024년 1월 12일
Quoting Torsten’s comment:
"qfunc" does not accept symbolic input, and your B is symbolic.
Esteban Patricio Tipan Mantilla
2024년 1월 12일
Thank you!
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!