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: x5=(2t5).*ones(1,length(t5)); x6=zeros(1,length(t6)); x=[x1 x2 x3 x4 x5 x6]; t=[t1 t2 t3 t4 t5 t6]; %1.a ta=t+1; xa=x; %1.b tb=2t; xb=x; %1.c tc=t/21/2; xc=x; %following code to plot the function in the same figure figure(1) subplot(3,1,1); % to place more than one plot in the figure. plot(ta,xa); grid; % to add grid subplot(3,1,2); % to place more than one plot in the figure. plot(tb,xb); grid; % to add grid subplot(3,1,3); % to place more than one plot in the figure. plot(tc,xc); grid; % to add grid The code for the second part will be as the following n=5:5; x=[0 1 .5 .5 1 1 1 1 .5 0 0]; %2a nsa=n+4; xsa=x; %2b nsb=n+3; xsb=x; %2d nsd= n+2; delta=(n==0); xsd=x.*delta; figure(1); subplot(3,1,1); stem(nsa,xsa, 'LineWidth' ,2); grid; subplot(3,1,2); stem(nsb,xsb, 'LineWidth' ,2); grid; subplot(3,1,3); stem(nsd,xsd, 'LineWidth' ,2); grid;...
View
Full
Document
This note was uploaded on 03/13/2012 for the course EENG 320 taught by Professor Sherifabdelaseem during the Spring '10 term at American University in Cairo.
 Spring '10
 SherifAbdelaseem

Click to edit the document details