% % z-Uebertragungsfunktion der kontinuierlichen Übertragungsfunktion % 1 % G(s) = ------- % s + 1 s = tf('s') % G_s = 1/(s+1) % T = 1 % Abtastintervall % G_z = c2d(G_s,T) % Conversion of continuous-time models to discrete time. % figure(1) % step(G_s) % kontinuierliche Sprungantwort hold on [y,t] = step(G_z,10); % diskrete Sprungantwort stem(t,y) figure(2) clf t = 0:0.1:10; u = t; lsim(G_s,u,t) % kontinuierliche Rampenantwort hold on t = 0:1:10; u = t; [y1,t] = lsim(G_z,u,t); % diskrete Rampenantwort stem(t,y1,'r','LineStyle','none') [y2,t] = lsim(c2d(G_s,T,'foh'),u,t); % diskrete Rampenantwort mit Halteglied 1. Ordnung stem(t,y2,'g','LineStyle','none') legend('y(t)','y_{ZOH}','y_{FOH}')