Here is a program of MAT LAB for generation of random signals in continuous and discreet form.
open MAT LAB open new script and paste this program :-
Program :-
-----------------------------------------------------------------------------------------------------------------------
n=input('enter yhe value of n=');
x=rand(1,n);
subplot(211);
stem(x);
ylabel('amp.');
xlabel('time');
title('dis. random signal');
subplot(212);
plot(x);
ylabel('amp.');
xlabel('time');
title('cont. random signal');
open MAT LAB open new script and paste this program :-
Program :-
-----------------------------------------------------------------------------------------------------------------------
n=input('enter yhe value of n=');
x=rand(1,n);
subplot(211);
stem(x);
ylabel('amp.');
xlabel('time');
title('dis. random signal');
subplot(212);
plot(x);
ylabel('amp.');
xlabel('time');
title('cont. random signal');
-----------------------------------------------------------------------------------------------------------------------
just paste the program, press run, enter the value of 'n' (numerical). get output :-
Output :-
Output :-
Note :-
output will be different every time because it is a random signal
IF YOU HAVE ANY QUERY THAN CONTACT US OR GIVE YOUR QUERY IN THE QUERY OPTION.
GOOD LUCK
No comments:
Post a Comment