help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Response to a pluse generator type input...


From: dastew
Subject: RE: Response to a pluse generator type input...
Date: Thu, 11 Feb 2010 12:21:39 +0000





> Date: Wed, 10 Feb 2010 19:01:22 -0800
> From: address@hidden
> Subject: Response to a pluse generator type input...
> To: address@hidden
>
> By any chance is there a function to use to produce a response to a pulse generator type input?
>
> I have a transfer function and I've successfully used the step(...) to look at the response of the transfer function to the step input, but I would like to have a pulse generator type input and look at the response of the transfer function to that.
>
> Thanks for any information and feedback.
>
>


From: "address@hidden" <address@hidden>
To: address@hidden; address@hidden
Sent: Wed, February 10, 2010 9:10:54 PM
Subject: RE: Response to a pluse generator type input...

Is Impulse  what you want or do you want a pulse?
You can use impulse(sys) like you can step(sys)
Doug

>
Date: Thu, 11 Feb 2010 04:02:12 -0800
From: address@hidden
Subject: Re: Response to a pluse generator type input...
To: address@hidden; address@hidden

I really would like to see the response due to a pulse generator type input:
http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/pulsegenerator.html

I would then like to be able to vary the period and amplitude.

Thanks a ton for any and all feedback.

MY reply

Try the lsim function

— Function File: [y, x] = lsim (sys, u, t, x0)
Produce output for a linear simulation of a system; produces a plot for the output of the system, sys.
u is an array that contains the system's inputs. Each row in u corresponds to a different time step. Each column in u corresponds to a different input. t is an array that contains the time index of the system; t should be regularly spaced. If initial conditions are required on the system, the x0 vector should be added to the argument list.
When the lsim function is invoked a plot is not displayed; however, the data is returned in y (system output) and x (system states).




You can make up "u" to be any shape you want including a pulse train.

If you want more help on this just ask :-)

Doug

PS please bottom post    - Yes I know I goofed first.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]