Thread Subject: 'sim' function & simulink question

Subject: 'sim' function & simulink question

From: Omni Domni

Date: 23 Jun, 2008 15:14:01

Message: 1 of 2

Hello

I'm running a simulink model through an m-file using the
function:
[t,y]=sim('model_name')

The model has the following form (u1,o1 are signals):
u1 --> (masked model here) --> o1
o1+(source signal) --> (transfer function) --> u1

How can I set the model so only selected signals are
returned in 'y'? For example so that only o1 is returned
in 'y'.

Subject: 'sim' function & simulink question

From: Devdatt Lad

Date: 23 Jun, 2008 17:06:44

Message: 2 of 2

Omni Domni wrote:
> Hello
>
> I'm running a simulink model through an m-file using the
> function:
> [t,y]=sim('model_name')
>
> The model has the following form (u1,o1 are signals):
> u1 --> (masked model here) --> o1
> o1+(source signal) --> (transfer function) --> u1
>
> How can I set the model so only selected signals are
> returned in 'y'? For example so that only o1 is returned
> in 'y'.

The signals in your model which are feeding Outport blocks will be
returned in y. If you don't want a particular signal to be returned in y
then connect it to a Terminator block instead of an Outport block.

--
Devdatt Lad
The MathWorks, Inc.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com