Using solve to find unknown Constant in equation

조회 수: 2 (최근 30일)
Sergio Manzetti
Sergio Manzetti 2018년 1월 3일
댓글: Sergio Manzetti 2018년 1월 3일
Hi, I tried to use solve in the following fashion:
if true
% code
end
syms a x C
Csolve = solve(C+pi*cos(a)+pi*i*sin(a)-C*exp^(i*a)*cos(a)-C*exp^(i*a)*i*sin(a)==0)
However, it returns "Not enough parameters"
Is there a particular missing part here?
Thanks!

채택된 답변

Torsten
Torsten 2018년 1월 3일
Csolve = solve(C+pi*cos(a)+pi*1i*sin(a)-C*exp(1i*a)*cos(a)-C*exp(1i*a)*1i*sin(a)==0,C)
Best wishes
Torsten.
  댓글 수: 3
Torsten
Torsten 2018년 1월 3일
편집: Torsten 2018년 1월 3일
"exp^" should produce an error message, or MATLAB interprets "exp" as a variable name (though undefined in your code from above).
Best wishes
Torsten.
Sergio Manzetti
Sergio Manzetti 2018년 1월 3일
so it should only be exp indeed! Thanks, forgot it there.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by