Complex transfer function, 's' to 'jw' conversion

Hi,
I have a big size transfer function in S-domain and I need to replace the 's' with 'jw' in that function (conver s to complex mode). Can anyone help me?

2 件のコメント

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 6 月 9 日
Give a short example, and tell what should be the result?
lounis chehrit
lounis chehrit 2021 年 6 月 8 日
what about a signal which is for example:
Real(X(s))=34cos(2*pi*s/20) + 2cos(4*pi*s)
Imag(X(s))=21 sin(2*pi*s/3) + 20 sin(15*pi*s/12)
how can i find the transfer function? without the complex J.
And how can i compute the laplace inv without errors please ?

サインインしてコメントする。

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 6 月 9 日
編集済み: Azzi Abdelmalek 2013 年 6 月 9 日

0 投票

If you have the transfer function G, you can get the numerator and denominator by using getdata function, then use this code
w=-10:0.1:10 % Frequency vector
N=[1 2] % Transfer function numerator
D=[1 3 2] % Transfer function Denominator
syms w
g=poly2sym(N,i*w)/poly2sym(D,i*w)
w=-10:0.1:10
h=double(subs(g))
plot(abs(h))

3 件のコメント

Mehdi Ghasem Moghadam
Mehdi Ghasem Moghadam 2017 年 4 月 3 日
Hi I think something is wrong. It does not work.
Victor Manuel Chan Ortiz
Victor Manuel Chan Ortiz 2020 年 4 月 3 日
You can do:
g=poly2sym(N,s)/poly2sym(D,s);
g=subs(g,s,w*1i)
And replace w with the value that you need
lounis chehrit
lounis chehrit 2021 年 6 月 8 日
what about a signal which is for example:
Real(X(s))=34cos(2*pi*s/20) + 2cos(4*pi*s)
Imag(X(s))=21 sin(2*pi*s/3) + 20 sin(15*pi*s/12)
how can i find the transfer function? without the complex J.
And how can i compute the laplace inv without errors please ?

サインインしてコメントする。

カテゴリ

製品

質問済み:

2013 年 6 月 9 日

コメント済み:

2021 年 6 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by