how to use impulse, step and ramp functions

Started by Ask me I might tell you November 8, 2006
Hi

I am having difficulty in understanding how to come about using the
info provided by help.

So if anybody could help me would be great.

I need to generate

IMPULSE function for:

y=zeros(1,5)
y=[1; zeros(99,1)];

STEP function:

y=ones(100,1);

RAMP function:

y=t;
plot(t,y)

I do not know the lines of codes to put in to do the above.

If someone could show me please.

Thank you
Hi

I am having difficulty in understanding how to come about using the
info provided by help.

So if anybody could help me would be great.

I need to generate

IMPULSE function for:

y=zeros(1,5)
y=[1; zeros(99,1)];

STEP function:

y=ones(100,1);

RAMP function:

y=t;
plot(t,y)

I do not know the lines of codes to put in to do the above.

If someone could show me please.

Thank you