From: Sreevas on
I am only a second day user of matlab. How can I find the sinusoidal response of a system? I have a low pass filter for which I found the impulse response and step response by step(...) and impulse(...) functions respectively.But what is the way to find the sinusoidal response of the low pass filter?
From: Wayne King on
"Sreevas " <mailsreevas(a)gmail.com> wrote in message <i09sfp$qua$1(a)fred.mathworks.com>...
> I am only a second day user of matlab. How can I find the sinusoidal response of a system? I have a low pass filter for which I found the impulse response and step response by step(...) and impulse(...) functions respectively.But what is the way to find the sinusoidal response of the low pass filter?

Hi, Based on your post, I'm not sure whether you are modeling an analog or discrete-time system, but see

>>doc freqs

or

>>doc freqz

Hope that helps,
Wayne
From: Sreevas on
i am jus modelling a system having a resistance and capacitance. Where can i find the doc freqs?
"Wayne King" <wmkingty(a)gmail.com> wrote in message <i09t15$2le$1(a)fred.mathworks.com>...
> "Sreevas " <mailsreevas(a)gmail.com> wrote in message <i09sfp$qua$1(a)fred.mathworks.com>...
> > I am only a second day user of matlab. How can I find the sinusoidal response of a system? I have a low pass filter for which I found the impulse response and step response by step(...) and impulse(...) functions respectively.But what is the way to find the sinusoidal response of the low pass filter?
>
> Hi, Based on your post, I'm not sure whether you are modeling an analog or discrete-time system, but see
>
> >>doc freqs
>
> or
>
> >>doc freqz
>
> Hope that helps,
> Wayne
From: Faraz Afzal on
"Sreevas " <mailsreevas(a)gmail.com> wrote in message <i09sfp$qua$1(a)fred.mathworks.com>...
> I am only a second day user of matlab. How can I find the sinusoidal response of a system? I have a low pass filter for which I found the impulse response and step response by step(...) and impulse(...) functions respectively.But what is the way to find the sinusoidal response of the low pass filter?


Wow.. It makes me so happy when i See people asking intereting question and then loooking at the power of Matlab turn to it forever..

Here is the way to simulate ur response..
u will use gensig command.
To generate a sine wave of
PERIOD = 3 sec,
DURATION = 10 sec
SAMPLED AT = 0.1 sec
Use this..
[u,t] = gensig('sin',3,10,0.1)

Once you achieved it use this to find response..
lsim(sys,u,t)

Let me know if it was help..

Regards,
Muhammad Faraz
From: Wayne King on
"Sreevas " <mailsreevas(a)gmail.com> wrote in message <i0a4qg$id2$1(a)fred.mathworks.com>...
> i am jus modelling a system having a resistance and capacitance. Where can i find the doc freqs?
> "Wayne King" <wmkingty(a)gmail.com> wrote in message <i09t15$2le$1(a)fred.mathworks.com>...
> > "Sreevas " <mailsreevas(a)gmail.com> wrote in message <i09sfp$qua$1(a)fred.mathworks.com>...
> > > I am only a second day user of matlab. How can I find the sinusoidal response of a system? I have a low pass filter for which I found the impulse response and step response by step(...) and impulse(...) functions respectively.But what is the way to find the sinusoidal response of the low pass filter?
> >
> > Hi, Based on your post, I'm not sure whether you are modeling an analog or discrete-time system, but see
> >
> > >>doc freqs
> >
> > or
> >
> > >>doc freqz
> >
> > Hope that helps,
> > Wayne

It's a function in the Signal Processing Toolbox.

Wayne