The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Re: Using gear with exter
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Gary Levenson

Posts: 1
Registered: 12/7/04
Re: Using gear with exter
Posted: Jun 20, 1996 9:13 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

From: (Gary Levenson)
In article <>,
Jostein Vada <> writes:

> How can I send a control signal to 'system' in the call to
> gear('system',tf) at the Matlab command line, (without making a block
> diagram in Simulink using a 'From-Workspace' block as control signal,
> and then saving this as 'system'). What I would like to be possible, is
> using a command like: [x,y,t]=gear('system', tf, u(t)).


If you have a block diagram to describe the system, use an input port
to accept the input signal. This can then be passed in from the
command line:


where ut can be a string or a table of values.

If you have equations which describe the system, it may be easier to
write an S-Function, which can then be called in the same way.



Gary Levenson
The MathWorks, Inc. ph: 508 647-7000

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.