When I try to solve this equation, this message appears, how can I solve this problem?

조회 수: 1 (최근 30일)
k=2.7904;
R=0.20491;
syms a
Eqn=a./((1+(2.*k(1-a)))+((1+(2.*k./3)).*(sqrt(3.*(1-a)))))==R;
a = vpasolve(Eqn, a);
Invalid indexing or function definition. Indexing must follow MATLAB indexing.
Function arguments must be symbolic variables, and function body must be sym
expression.

채택된 답변

David Hill
David Hill 2021년 10월 9일
편집: David Hill 2021년 10월 9일
k=2.7904;
R=0.20491;
syms a
Eqn=a./(1+(2*k*(1-a))+(1+(2*k/3)).*(sqrt(3*(1-a))))==R;%messed equation up (need k*(1-a))
s = vpasolve(Eqn, a);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Conversion Between Symbolic and Numeric에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by