Showing posts with label Random sequence. Show all posts
Showing posts with label Random sequence. Show all posts

MATLAB Program for Random sequence generation

Program Code
%Random Sequence Generation
clc;
close all;
clear all;
n=input('Input the length of Random sequence ');
y=linspace(1,n,n);
disp(y);
x=0+sqrt(1)*randn(1,n);
disp(x);
plot(y,x);
axis([1 10 -1.5 3.5]);
title('Random Sequence');
xlabel('Discrete Frequency');
ylabel('Amplitude');
grid on;



Example of Output

Input the length of Random sequence   13
     1     2     3     4     5     6     7     8     9    10    11    12    13

  Columns 1 through 7 
   -0.4326   -1.6656    0.1253    0.2877   -1.1465    1.1909    1.1892

  Columns 8 through 13 
   -0.0376    0.3273    0.1746   -0.1867    0.7258   -0.5883



_________________________________

For sale

For sale
Indian currency Ten-rupee note in good condition. Issued by the Reserve Bank of India between 22 December 1992 and 21 December 1997. Serial number 52T332603 . Those interested to buy, please contact: Anju K, Email: tc9749@gmail.com . Address: 'Sreyas', House no.7/296, Pulliodi, Kathiroor village, Ponniam east PO, via Ponniam west, Thalassery, Kannur, Kerala - 670641, India.