Showing posts with label MATLAB PROGRAMS. Show all posts
Showing posts with label MATLAB PROGRAMS. Show all posts

Monday, November 21, 2011

0

matlab program for crosscorrelation crosscorrelation using matlab

  • Monday, November 21, 2011
  • tech
  • % CROSS CORRELATION clear all; x = input('enter first sequence x='); h = input('enter second sequence ='); N1=length(x); N2=length(h); m=0:N1-1; k=0:N2-1; N= max(N1,N2); x =[x zeros(1,N-N1)]; h =[h zeros(1,N-N2)];   if (N1>N2)  p=x;x=h;h=p;     %for swapping since first term should...
    Read more...

    Sunday, May 1, 2011

    1

    matlab program for autocorrelation matlab code for autocorrelation autocorrelation matlab code

  • Sunday, May 1, 2011
  • tech
  • matlab program for autocorrelation programclear all;x=input('Enter the sequence');N=length(x);y=x;z=x;for i=1:N-1    for i=N-1:-1:1        x(i+1)=x(i);    end    x(1)=0;    z=[z;x];endm=[z]*[y'];m=m/N;stem(m);disp(m);title('Auto...
    Read more...

    Monday, April 18, 2011

    2

    matlab program for circular convolution matlab code for convolution matlab code for circular convolution

  • Monday, April 18, 2011
  • tech
  • circular convolution using matlab%circular convolutiona=input('enter first sequence');b=input('enter second sequence');l1=length(a);l2=length(b);N=max(l1,l2);a=[a zeros(N-l1)];b=[b zeros(N-l2)];for n=0:N-1    y(n+1)=0;    for i=0:N-1;        j=mod(n-i,N);       ...
    Read more...
    4

    matlab program for linear convolution matlab code for linear convolution linear convolution using matlab program

  • tech
  • matlab program for linear convolution  %linear convolutiona=input('enter the first sequence');b=input('enter second sequence');l1=length(a);l2=length(b);a=[a zeros(1,l2-1)];b=[b zeros(1,l1-1)];N=l1+l2-1;for k=1:N    s=0;    for i=1:k        s=s+(a(i)*b(k+1-i));   ...
    Read more...

    Wednesday, April 13, 2011

    0

    matlab program for fir hpf filter high pass filter fir design using matlab

  • Wednesday, April 13, 2011
  • tech
  • matlab program for fir high pass filterclear all;w=input('enter cut off fre in hertz');N=input('no of samples');wc=2*pi*w;alpha=(N-1)/2;eps=.001;for n=0:1:N-1    hd(n+1)=(sin(pi*(n-alpha+eps))-sin(wc*(n-alpha+eps)))/(pi*(n-alpha+eps));endwr=ones(1,N);hn=hd.*wr;w=0:.01:pi;h=freqz(hn,1,w);%absolute value...
    Read more...
    1

    matlab program for fir filter low pass matlab program for fir low pass filter

  • tech
  •  matlab program for fir low pass filterw=input('enter cut off frequency in hertz');N=input('enter number of samples');wc=2*pi*w;alpha=(N-1)/2;eps=.001;for n=0:1:N-1;    hd(n+1)=sin(wc*(n-alpha+eps))/(pi*(n-alpha+eps));endwr=ones(1,N);hn=hd.*wr;w=0:.01:pi;h=freqz(hn,1,w); %frequency response%absolute...
    Read more...

    Tuesday, February 22, 2011

    0

    matlab program for sampling theorem

  • Tuesday, February 22, 2011
  • tech
  • %sampling theormclear all;t=-10:.01:10;                         %t vectorT=8;                                 ...
    Read more...
    0

    matlab program for triangular wave generation|triangle wave generator using matlab

  • tech
  • %traingular wavea=input('enter the  no of periods');b=input('enter the amplitude');c=input('enter the no of cycles');%continous traingular wavem=2*b/a;                 %calculation of sloped=0;e=a/2;                  ...
    Read more...

    Sunday, December 5, 2010

    1

    Matlab Program for exponential wave

  • Sunday, December 5, 2010
  • tech
  • Brief TheoryIn Exponential Wave, the amplitude varies exponentially with respect to time. Exponential Wave is expressed as y=a*exp(b*t) where a is a constant and b is the amplitude and t is the time. Exponential wave may be positive or negative exponential according to the amplitude. If amplitude is positive it is positive...
    Read more...

    Monday, November 22, 2010

    0

    matlab program for amplitude modulation

  • Monday, November 22, 2010
  • tech
  • PROGRAM% amplitude modulated waven=0:100;m=0.3;fm=0.01;fc=0.1;xm=sin(2*pi*fm*n);xc=sin(2*pi*fc*n);y=(1+m*xm).*xc;stem(n,y);         grid;xlabel('time index n');ylabel('amplitude');OUTPUT  createSummaryAndThumb("summary9042961040267411581"...
    Read more...
    0

    MATLAB SIMULINK PROGRAM FOR DISCRETE SINE WAVE

  • tech
  •  SINE WAVESOURCES->SINE WAVESOURCE BLOCK PARAMETERSSCOPESIMULINK->SINK->SCOPECLICK ON PARAMETER ICON ON SCOPE DISPLAYGENERAL AXES:NO OF AXES:1TIME RANGE:AUTOSPECTRUM SCOPESIGNAL PROCESSING BLOCKSET->SINKS->SPECTRUM SCOPESET THE PROPERTIES AS SHOWN BELOWCLICK ON SIMULATION ICON ON MODEL WINDOW AND...
    Read more...
    0

    MATLAB SIMULINK PROGRAM FOR CONTINOUS SINE WAVE

  • tech
  • BLOCK DIAGRAMPARAMETERSSINE WAVESOURCES->SINE WAVESIMULINK->SINK->SCOPECLICK ON PARAMETER ICON ON SCOPE DISPLAYGENERAL AXES:NO OF AXES:1TIME RANGE:AUTOCLICK ON SIMULATION ICON ON MODEL WINDOW AND OBSERVE OUTPUTSOURCE BLOCK PARAMETERSOUTPUT createSummaryAndThumb("summary3305740365737232907"...
    Read more...
    0

    MATLAB SIMULINK PROGRAM FOR SINE SQUARED WAVE(WAVEFORM MULTIPLICATION)

  • tech
  • SETUP   SPECTRUM createSummaryAndThumb("summary2605105287861367610"...
    Read more...

    Wednesday, November 17, 2010

    0

    MATLAB PROGRAM FOR Ramp continous and discrete

  • Wednesday, November 17, 2010
  • tech
  • PROGRAM % ramp continous and discreten=0:.1:10;subplot(211);         %breaks figure window into 2*1 matrix and select 1st axis for current plotplot(n,n);                %plotting the value of n against...
    Read more...
    0

    MATLAB PROGRAM FOR Ramp Discrete GENERATION

  • tech
  • PROGRAM % ramp discreten=0:.1:10;stem(n,n);                %discrete plote the value of n against n for getting ramp signaltitle('ramp discrete');           xlabel('time');ylabel('amplitude...
    Read more...
    0

    MATLAB PROGRAM FOR Ramp continous generation

  • tech
  • PROGRAM % ramp continousn=0:.1:10;plot(n,n);                %plotting the value of n against n for getting ramp signaltitle('ramp continous');           xlabel('time');ylabel('amplitude'); ...
    Read more...
    0

    Step Wave Continous and Discrete

  • tech
  • PROGRAM% step discrete and continousn=ones(1,20);         % creates an array of 20 elements with value 1;x=0:1:19; subplot(211);        %breaks figure window into 2*1 matrix and select 1st axis for current plotstem(x,n);             ...
    Read more...
    0

    matlab program for Step Wave Discrete

  • tech
  • PROGRAM % step discreten=ones(1,20);         % creates an array of 20 elements with value 1;x=0:1:19;               stem(x,n);      %discrete step wavetitle('continous step');xlabel('time');ylabel('amplitude'); createSummaryAndThumb("summary6970796410719339729"...
    Read more...
    0

    MATLAB program for Step Wave Continous generation

  • tech
  • PROGRAM % step continousn=ones(1,20);         % creates an array of 20 elements with value 1;x=0:1:19;               plot(x,n);      %continous step wavetitle('continous step');xl...
    Read more...
    0

    matlab program for sine wave generation(Continous and discrete)

  • tech
  • Program % continous sine wavet=0:.1:10;                                   %create an array t  a=input('enter the amplitude');f=input('enter the frequency');y=a*sin(2*pi*f*t);                     ...
    Read more...