Вы находитесь на странице: 1из 3

LAB6

TASK 01

______________________________________________
Repeat the program by changing the frequency of the sinusoidal signal
to 3 Hz and 7 Hz, respectively. Is there any difference between the
corresponding equivalent discrete-time signals. If not, why not?
PROCEDURE :
First of all I open the MATLAB software ,then I select file then NEW
then select SCRIPT (m-file) . Then I start writing program .
I declare a variable for given BEAT signal . then declare the BEAT
signal. Then using the following commands I plot the required signal .

COMMAND USED;

RESULT ;envelop.

title( )
xlabel()
ylabel( )
grid
stem

when I run the program I get the required BEAT signals and its

EDITOR WINDOW
disp
('"Fazalakbar"'
)
disp
('REDG#"0428"'
)
disp
('SECTION :A'
)
disp
('LAB:6 TASK NO ONE:'
)
disp
('PERFORM ALIASING AND FOLDING');
t = 0:0.00005:1;
f = 3;
Y = cos(2*pi*f*t);
subplot(2,1,1)
plot(t,Y);
grid
xlabel('Time, msec');
ylabel('Amplitude');
title('Continuous-time signal x(t)');
axis([0 1 -1.2 1.2])
subplot(2,1,2);
Fs=10;
T = 0.1;
n = 0:T:1;
x = cos(2*pi*f*n);
k = 0:length(n)-1;
stem(k,x,'R*');
grid
xlabel('Time index n');
ylabel('Amplitude');
title('Discrete-time signal x[n]');

COMMAND WINDOW

" Fazalakbar "


REDG#"0428"
SECTION :A
LAB:6 TASK NO ONE:
PERFORM ALIASING AND FOLDING
>>

OUT PUT GRAPH

May 19, 2014

Вам также может понравиться