substitution in symbolic.

4 vues (au cours des 30 derniers jours)
SUBHABRATA Basak
SUBHABRATA Basak le 16 Août 2022
Commenté : Walter Roberson le 16 Août 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 commentaire
Walter Roberson
Walter Roberson le 16 Août 2022
What is your input? Is it a tf() ? A zpk()? A ss() ? A symbolic expression ?

Connectez-vous pour commenter.

Réponses (1)

Torsten
Torsten le 16 Août 2022
Modifié(e) : Torsten le 16 Août 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

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by