substitution in symbolic.

조회 수: 5 (최근 30일)
SUBHABRATA Basak
SUBHABRATA Basak 2022년 8월 16일
댓글: Walter Roberson 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