Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Time dependent exponential function in simulink

1,618 views
Skip to first unread message

Stefan Smolik

unread,
Aug 2, 2009, 11:53:01 PM8/2/09
to
Hi all,

I am wondering how I can set up a time dependent function in simulink such as exp(t)? I tried to insert a counter to represent the elapsing time to a user mathematical function block. However this does not work.

Is there an official approach to implement such functions?

Murugaiyan

unread,
Aug 3, 2009, 1:40:29 AM8/3/09
to
"Stefan Smolik" <ssm...@gmx.de> wrote in message <h55mut$m7n$1...@fred.mathworks.com>...

> Hi all,
>
> I am wondering how I can set up a time dependent function in simulink such as exp(t)? I tried to insert a counter to represent the elapsing time to a user mathematical function block. However this does not work.
>
> Is there an official approach to implement such functions?

hi,
try this

Fcn blk---from simulink browser

Library
User-Defined Functions

cheers
tamil

Kristof

unread,
Aug 3, 2009, 1:46:01 AM8/3/09
to
Use a 'Clock' and feed it to a 'Math Function', if you just need an exp(t) function. If the signal is more complex I'd suggest you use a 'MATLAB Fcn' block instead of the 'Math Function'.
0 new messages