substitution in symbolic.

5 visualizaciones (últimos 30 días)
SUBHABRATA Basak
SUBHABRATA Basak el 16 de Ag. de 2022
Comentada: Walter Roberson el 16 de Ag. de 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 comentario
Walter Roberson
Walter Roberson el 16 de Ag. de 2022
What is your input? Is it a tf() ? A zpk()? A ss() ? A symbolic expression ?

Iniciar sesión para comentar.

Respuestas (1)

Torsten
Torsten el 16 de Ag. de 2022
Editada: Torsten el 16 de Ag. de 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

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by