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

7 次查看(过去 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 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Symbolic Variables, Expressions, Functions, and Preferences 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by