Assignment(1)Sol - x5=(2-t5).*ones(1,length(t5));...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
Signals and Systems (EENG 320) Assignment (1) fig(1) fig(2) 1) A continuous-time signal x(t) is shown in fig(1). Sketch and label carefully each of the following signals: The original signal x(t) a. x(t-1)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
b. x(2-t) c. x(2t+1)
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
d. x(4-t/2)
Background image of page 4
e. [x(t) + x(-t)] u(t) f. x(t) [ δ(t+2/3) – δ(t-3/2)]
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2) A discrete-time signal is shown in fig(2). Sketch and label carefully each of the following signals: a. x[n-4] b. x[3-n]
Background image of page 6
c. x[3n] d. x[n-2] δ[n-2]
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
3) Write MATLAB code to draw signals of problems 1.a, 1.b, 1.c. Hence, and without constructing the signals once again write a MATLAB code to draw the signals of problems 2.a, 2.b, 2.d. The code for the first part will be as the following t1=[-3:0.01:-2]; t2=[-2:0.01:-1]; t3=[-1:0.01:0]; t4=[0:0.01:1]; t5=[1:0.01:2]; t6=[2:0.01:3]; x1=zeros(1,length(t1)); x2=(t2+1).*ones(1,length(t2)); x3=ones(1,length(t3)); x4=ones(1,length(t4))*2;
Background image of page 8
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 10
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: x5=(2-t5).*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=2-t; xb=x; %1.c tc=t/2-1/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

Page1 / 10

Assignment(1)Sol - x5=(2-t5).*ones(1,length(t5));...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online