Thread Subject: simulink block problem with transfer function

Subject: simulink block problem with transfer function

From: Manfred Winner

Date: 13 Jan, 2008 09:16:02

Message: 1 of 3

hi,

I created in an m-file in MATLAB a variable e.g.
a = tf([4 1],[1 0])

Now I created an simulink model using an Transfer Function
Block and my problem is how do I assgin my variable a to the
simulink block?

My second question is how can I change the view on an
Transfer function block? I want the step response e. g. of
an integrator in the block and not the default Tranfer Function.

Subject: simulink block problem with transfer function

From: Anh Huy Phan

Date: 13 Jan, 2008 12:12:02

Message: 2 of 3

"Manfred Winner" <john.doe.nospam@mathworks.com> wrote in
message <fmcksi$fsd$1@fred.mathworks.com>...
> hi,
>
> I created in an m-file in MATLAB a variable e.g.
> a = tf([4 1],[1 0])
>
> Now I created an simulink model using an Transfer Function
> Block and my problem is how do I assgin my variable a to the
> simulink block?

Why don't you specify directly Numerator and Denominator
coefficients in the block Transfer Fcn?

However, If you like, it could be done like this

Numerator
    a.num{1}

Denominator
    a.den{1}

 
> My second question is how can I change the view on an
> Transfer function block? I want the step response e. g. of
> an integrator in the block and not the default Tranfer
Function.

Use image :: Mask Icon Drawing Commands (Simulink)

http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/
slref/image.html

http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/
ug/f8-3488.html

E.x:

image(imread(yourimage))

Note that: yourimage is an indexed image m x n x 3

Anh Huy Phan
RIKEN - BSI

Subject: simulink block problem with transfer function

From: Pascal Gahinet

Date: 14 Jan, 2008 02:14:08

Message: 3 of 3

Hi,

The "LTI System" block lets you enter the transfer function "a" directly,
see the "Control System Toolbox" library in the Simulink browser or type

>> cstblocks

-pascal

"Manfred Winner" <john.doe.nospam@mathworks.com> wrote in message
news:fmcksi$fsd$1@fred.mathworks.com...
> hi,
>
> I created in an m-file in MATLAB a variable e.g.
> a = tf([4 1],[1 0])
>
> Now I created an simulink model using an Transfer Function
> Block and my problem is how do I assgin my variable a to the
> simulink block?
>
> My second question is how can I change the view on an
> Transfer function block? I want the step response e. g. of
> an integrator in the block and not the default Tranfer Function.


Tags for this Thread

Everyone's Tags:

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.

Tag Activity for This Thread
Tag Applied By Date/Time
simulink Manfred Winner 13 Jan, 2008 04:15:57
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