Electrical resource!

Friday, December 15, 2006

How to Convert continues Signal to Discrete signal Using Matlab 7.0

How to convert continues signal to discrete signal using Matlab 7.0 ?...here is the way to convert the continues sinusoidal sin signal into discrete time signal the only replacement you have to do is that,to replace the plot command to stem command i-e for sinusoidals ploting you have to use plot(t,any signal) but to plot it in discrete you have to write =>> stem(t,any signal) instead of writing the plot command.

Coding for discrete signal in Matlab
t=0:0.01:0.5;
y=sin(2*pi*5*t);
stem(t,y);
title('discrete signal')

Graph for discrete Signal

0 Comments:

Post a Comment

<< Home

eXTReMe Tracker