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
"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)
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.
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.