[SOLVED] Help me plot lollipop figure in Matlab

Status
Not open for further replies.

hgphtgi2

Banned
Joined
Sep 19, 2010
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
0
hi all, could u help me to solve the following using matlab

x(-3)=1,x(-2)=-2,x(-1)=0,x(0)=3,x(1)=0,x(2)=2,x(3)=-1

h(-2)=-1,h(-1)=2,h(0)=0,h(1)=1,h(2)=-2

a) plot lollipop figure of x

b) use MATLAB to find convolution y=x*h

c)a) plot lollipop figure of y
 

Re: sos please


Is this your assignment? and sos is deadline for it?
 

Re: sos please

no sir its not assignment.Its just tutorial.

tnx for ur replay
 

Re: sos please


a) I'm assuming you mean a stem plot..
x = [1,-2,0,3,0,2,-1];
n = -3:3;
stem(n,x);

b) type "help conv" in matlab console.

c) follow steps in a).
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…