substitution in symbolic.

10 次查看(过去 30 天)
SUBHABRATA Basak
SUBHABRATA Basak 2022-8-16
How do i replace 's' with j*w in a transfer function and extract the real and imaginary parts of it in terms of w?
  1 个评论
Walter Roberson
Walter Roberson 2022-8-16
What is your input? Is it a tf() ? A zpk()? A ss() ? A symbolic expression ?

请先登录,再进行评论。

回答(1 个)

Torsten
Torsten 2022-8-16
编辑:Torsten 2022-8-16
syms s w
assume(w,'real')
f = s + s^2;
fs = subs(f,s,1i*w);
fs_real = real(fs)
fs_real = 
fs_imag = imag(fs)
fs_imag = 
w

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by