Program to generate step sequence hence to plot and then fold this sequence

Write MATLAB Program (i)  to generate step sequence  hence to plot    and then fold this sequence

Editor
n=-5:8;
x=2*(n>=0);
subplot(2,1,1);
stem(n,x);
m=-fliplr(n)
y=fliplr(x)
subplot(2,1,2);
stem(m,y);

Command Window

ss2

m =

    -8    -7    -6    -5    -4    -3    -2    -1     0     1     2     3     4     5


y =

     2     2     2     2     2     2     2     2     2     0     0     0     0     0


SHARE

Rishabh Chatterjee

Hi. I’m Engineering Student. I’m YouTuber. I’m Trying to find my passion.Sharing my life experiences with the world.

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment

Featured post

BENGALURU TO KANNUR

Welcome to Part 1 Of My Bengaluru To Kannur Trip.After almost 6 months finally im going on a road trip.I Hope you all enjoy this video.