matlab - How can the output of a Simulink block be fed back as an input? -
i have 2 embedded matlab functions using create simulink model. both functions use output of second function input. getting error @ moment indicating invalid loop.
does know how implement type of behaviour?
you've created algebraic loop, means compute inputs of embedded matlab block directly dependent on outputs of block. not allowed when loop "self-loop", i.e. there 1 block in loop.
one way fix put unit delay block(s) somewhere on signal feeding embedded matlab block. see documentation on algebraic loops more information.
Comments
Post a Comment