MATLAB Answers

0

Algebraic Loop Problem

Asked by Tan Edwin on 15 Mar 2011
Hi
i have a S-function block that works perfectly fine when i didnt feedback it as an input for the S-function.
When i feedback my results to the s-function, it comes out a algebraic loop error or the output becomes 0. What i want is just used the calculated value from the S-function block for the next time step.
Is there any other methods to get what i want other than looping back the value?

  1 Comment

Tan Edwin on 15 Mar 2011
i dun need the matlab to calculate any convergence solution

Sign in to comment.

Products

2 Answers

Answer by Tan Edwin on 15 Mar 2011
 Accepted Answer

Sry didnt notice that there were post on this already.
http://www.mathworks.com/matlabcentral/answers/925-loop-algebraic-and-variable-signal
Problem solved by using the unit delay block.

  0 Comments

Sign in to comment.


Shpat
Answer by Shpat
on 15 Mar 2011

the brutal solution is use a very small delay

  0 Comments

Sign in to comment.