substitution in symbolic.

5 Ansichten (letzte 30 Tage)
SUBHABRATA Basak
SUBHABRATA Basak am 16 Aug. 2022
Kommentiert: Walter Roberson am 16 Aug. 2022
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 Kommentar
Walter Roberson
Walter Roberson am 16 Aug. 2022
What is your input? Is it a tf() ? A zpk()? A ss() ? A symbolic expression ?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Torsten
Torsten am 16 Aug. 2022
Bearbeitet: Torsten am 16 Aug. 2022
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

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by