How to determine the absolute value of a complex exponential function containing a symbolic variable?

조회 수: 4 (최근 30일)
I am determining the frequency response of a parallel RLC circuit. The input current is 10*sin(w*t). The phasor form is, I = 10 exp(j*w*t). The abs(I) is 10. But matlab gives 10*exp(-imag(t*w)). But whatever the value of w*t, the absolute value is always 10. How can I get magnitude from such complex exponential, without substituting the value of w and t?

답변 (1개)

Torsten
Torsten 2022년 12월 3일
syms omega t real
syms I0 positive
I = I0*exp(1i*omega*t);
abs(I)
ans = 
  댓글 수: 3
Torsten
Torsten 2022년 12월 12일
Yes, if you don't restrict variables to e.g. being integer or real, they are assumed as complex by default.

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

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by