Wednesday, November 17, 2010

0

MATLAB PROGRAM FOR Ramp continous and discrete

  • Wednesday, November 17, 2010
  • tech
  • Share
  • PROGRAM


    % ramp continous and discrete
    n=0:.1:10;
    subplot(211);         %breaks figure window into 2*1 matrix and select 1st axis for current plot
    plot(n,n);                %plotting the value of n against n for getting ramp signal
    title('ramp continous');          
    xlabel('time');
    ylabel('amplitude');
    subplot(212);          %breaks figure window into 2*1 matrix and select 2nd axis for current plot
    stem(n,n);               %discrete plot
    title('ramp discrete');          
    xlabel('time');
    ylabel('amplitude');

    OUTPUT 

    0 Responses to “MATLAB PROGRAM FOR Ramp continous and discrete”

    Post a Comment