This preview shows pages 1–11. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: %0.5 1.0 omega_n = 10; %1 5 z = 1; %3 8 k_dc = 1; jj = 1; alpha = 0.5; % Define the transfer function model; My_Num = [k_dc, z]; My_Den = [1 2*xi*omega_n omega_n^2]; My_TF = tf(My_Num, My_Den); % Find the poles and zero of the system My_Pole = pole(My_TF) My_Zero = zero(My_TF) % Find the step response figure(jj), step(My_TF) % Simulate the response for sinusoidal singal with different frequencies; xi = .5; omega_n = 50; k_dc = 1; jj = 2; % Define the frequency of the sinusoidal signal; Sin_Omega = 50; % Define the timewindow for simulation; My_Time = (0:1e02:20)./Sin_Omega; My_Sin = sin(Sin_Omega.*My_Time); % Define the system; My_Num = [k_dc, omega_n^2]; My_Den = [1 2*xi*omega_n omega_n^2]; My_TF = tf(My_Num, My_Den); % Simulate the response; [y_s, t_s] =lsim(My_TF, My_Sin, My_Time); figure(10),subplot(3,1, jj), plot(t_s, y_s, 'b', My_Time, My_Sin, 'r');...
View
Full
Document
This document was uploaded on 03/23/2010.
 Spring '09

Click to edit the document details