How to solve complex equations in matlab.?

조회 수: 1 (최근 30일)
Abin Krishnan
Abin Krishnan 2014년 2월 18일
편집: John D'Errico 2014년 2월 18일
I have an equation Y=-(1-R)/(1+R); where both Y and R are imaginary. Given the real and imaginary parts of Y (e.g - (0.6,0) ),how to obtain the amplitude and argument of R?
  댓글 수: 1
John D'Errico
John D'Errico 2014년 2월 18일
Um, are both Y and R imaginary, or are they complex? Your example has Y as a REAL number, not imaginary at all.

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

채택된 답변

Carlos
Carlos 2014년 2월 18일
I think he wants to actually solve the equation, so perhaps he is looking for something like this
>> syms R;
Y=-(1-R)/(1+R)-0.6;
solve(Y,R)
ans =
4

추가 답변 (1개)

John D'Errico
John D'Errico 2014년 2월 18일
편집: John D'Errico 2014년 2월 18일
The simple rules of algebra suffice.
As long as R ~= -1 and Y ~= 1, we can solve for R in terms of Y. I suppose the symbolic toolbox would do it if you are that algebraically challenged. I don't wish to do your homework for you, but I would start by multiplying by (1+R), thus the issue with R == -1.
Solve for R. Note that in your example as posed with real Y, the solution will always be real IF one exists. Here I get R = -7/5.
R = -7/5;
-(1-R)/(1+R)
ans =
6

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by