% Course: Signals and Systems, NTU-EE, Spring 2004 % Section: 04 % ID: B91901XXX % Name: ±i¤T¤¥ % E-mail: abc@ntu.edu.tw % Program #: 1 % Date: March XX, 2004 % File Name: HW1B91901XXX.m clear all; close all; %echo on %%% define the variables you use if necessary n = -15:1:100; % time index x = sin(n); % input signal y = cos(2*pi/4*n); % output signal %%%% ... etc. %%% plot your result in separate figure, subplot, etc., if possible %%% use different symbols to show distinct data if necessary figure(11) subplot(2,1,1) plot(t,r,'r') hold on plot(ycd(:,1),ycd(:,2)) title('Step Responses of Digital and Continuous Controllers') ylabel('Position, y') xlabel('Time (sec)') legend( ) text(.33,.9, '\leftarrow continuous controller') text(.7,1.3, 'digital controller') grid hold off %%% put proper title, labels, explanations, legend subplot(2,1,2) plot( ) hold on ylabel( ) xlabel( ) text() grid hold off figure(12) plot( )