i am not getting output for the following code, Here i have to find step response of transfer function using fourier transform!!

1 vue (au cours des 30 derniers jours)
clc;
clear all;
syms t s; % creating dynamic time variable
G = tf([8 18 32], [1 6 14 24]); % generating transfer function using transfer function (tf)
[num,den] = tfdata(G); %returns the numerator and denominator of the transfer function for the TF
G_sym = poly2sym(num{:},s)/poly2sym(den{:},s);% expressing it in the form of polynomial
g=subs(G_sym,s,0.1*1i) % substituting s=j*w (where omega=0.1) for converting transfer function from laplace domain to fourier domain
Y_four_sym = G_sym/s; %U(s) = 1/s for the unit step
y_time_sym(t) = ifourier(Y_four_sym,0.1*1j);%taking inverse fourier transform
t=0:0.001:10;
plot(t,y_time_sym(t));

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by