DSPRelated.com
Forums

step and impulse response help

Started by emkatsogridakis March 15, 2009
Hi everyone.
I m new to matlab and digital signal processing. So i need your help!
As an excercise i was given the following signals

alpha = .1;
fs = 1; %sampling frequency [Hz]
t = (1:256)./fs; %time array [s]
x = exp(-alpha.*t); %input array x=e^(-at)

y = ones(1,256); %initially set all values to be equal to 1
y(1:20) = zeros(1,20); %then set the first group of samples to zero

I m being asked to get the transfer function, the step and impulse response of this system, with y as an input and x as an output.

I can get the transfer function using the tfestimate command in matlab.

Any ideas on how i can get the step and impulse response?

Thanx in advance for all the help.
Since it is a homework, i think you should try it yourself. You write
down the equations that you need to implement in your assignment and we
can help you out in writing its code. But, you need to find out the
'magical' equations yourself. As a hint, you can use filter command to
get both the impulse and step response. As you are in learning stage, I
will not recommend you to use any Toolbox functions to make your life
easier.

Ubaid Abdullah
http://dspdotcomm.blogspot.com

--- In m..., "emkatsogridakis"
wrote:
>
> Hi everyone.
> I m new to matlab and digital signal processing. So i need your help!
> As an excercise i was given the following signals
>
> alpha = .1;
> fs = 1; %sampling frequency [Hz]
> t = (1:256)./fs; %time array [s]
> x = exp(-alpha.*t); %input array x=e^(-at)
>
> y = ones(1,256); %initially set all values to be equal to 1
> y(1:20) = zeros(1,20); %then set the first group of samples to zero
>
> I m being asked to get the transfer function, the step and impulse
response of this system, with y as an input and x as an output.
>
> I can get the transfer function using the tfestimate command in
matlab.
>
> Any ideas on how i can get the step and impulse response?
>
> Thanx in advance for all the help.
>
thats sound advice :)

To: m...
From: u...@yahoo.com
Date: Wed, 18 Mar 2009 09:08:51 +0000
Subject: [matlab] Re: step and impulse response help

Since it is a homework, i think you should try it yourself. You write down the equations that you need to implement in your assignment and we can help you out in writing its code. But, you need to find out the 'magical' equations yourself. As a hint, you can use filter command to get both the impulse and step response. As you are in learning stage, I will not recommend you to use any Toolbox functions to make your life easier.

Ubaid Abdullah
http://dspdotcomm.blogspot.com

--- In m..., "emkatsogridakis" wrote:
>
> Hi everyone.
> I m new to matlab and digital signal processing. So i need your help!
> As an excercise i was given the following signals
>
> alpha = .1;
> fs = 1; %sampling frequency [Hz]
> t = (1:256)./fs; %time array [s]
> x = exp(-alpha.*t); %input array x=e^(-at)
>
> y = ones(1,256); %initially set all values to be equal to 1
> y(1:20) = zeros(1,20); %then set the first group of samples to zero
>
> I m being asked to get the transfer function, the step and impulse response of this system, with y as an input and x as an output.
>
> I can get the transfer function using the tfestimate command in matlab.
>
> Any ideas on how i can get the step and impulse response?
>
> Thanx in advance for all the help.
>