Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
3Activity
0 of .
Results for:
No results containing your search query
P. 1
LAB NO 2: DIGITAL PROCESSING OF CONTINUOUS SIGNALS SAMPLING OF CONTINUOUS TIME SIGNALS USING MATLAB™

LAB NO 2: DIGITAL PROCESSING OF CONTINUOUS SIGNALS SAMPLING OF CONTINUOUS TIME SIGNALS USING MATLAB™

Ratings: (0)|Views: 762|Likes:
Published by Husnain Ahmad
LAB NO 2: DIGITAL PROCESSING OF CONTINUOUS SIGNALS
SAMPLING OF CONTINUOUS TIME SIGNALS USING MATLAB™
LAB NO 2: DIGITAL PROCESSING OF CONTINUOUS SIGNALS
SAMPLING OF CONTINUOUS TIME SIGNALS USING MATLAB™

More info:

Published by: Husnain Ahmad on Dec 22, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/12/2014

pdf

text

original

 
L
AB
N
O
2:
 
D
IGITAL
P
ROCESSING OF
C
ONTINUOUS
S
IGNALS
 S
AMPLING OF
C
ONTINUOUS
T
IME
S
IGNALS
U
SING
M
ATLAB
 
Source Code:
clf;t=0:0.00005:1;f=13;xa=cos (2*pi*f*t);subplot (2,1,1);plot ( t,xa);grid;xlabel ('time,msec');title ('continuous time signal x(at)');axis ([0 1 -1.2 1.2]);subplot (2,1,2);T=0.1;N=0:T:1;xs=cos (2*pi*f*n);k=0:length(n)-1;stem (k,xs);grid;xlabel ('Time Index n');ylabel ('amplitude');title ('discrete time signalx[n]');axis ([0 length(n)-1 -1.2 1.2]);
 
Outputs:
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1-1-0.500.51time,mseccontinuous time signal x(at)0 5 10 15 20 25 30 35 40-1-0.500.51Time Index n
      a      m      p        l        i       t      u        d      e
discrete time signalx[n]
 
T
HE
A
LIASING
E
FFECT
 
Source Code:
t=0:0.0005:1;f=13;Ya=cos (2*pi*f*t);subplot(2,1,1);plot(t,Ya);grid;xlabel('time, msec');ylabel('Amplitude');Axis([0 1 -1.2 1.2]);subplot(2,1,2);T=0.1;f=13;N=(0:T:1);Ys=cos(2*pi*f*n);T=linespace(-0.5,1.5,500);TYa=sinc((1/T)*t(:,ones(size(n)))-(1/T)*n(:,ones(size(t)))*Ys;plot(n,Ys,'o',t,Tya);grid;xlabel('Time,msec');Ylabel('Amplitude');axis([0 1 -1.2 1.2]);

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->