To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
I have the following problem, I want to iterate two variables in Simulink. In normal code it would look like this:
I used For Iterate Block but it doesn't work. I'm getting an error:
"Trouble solving algebraic loop containing 'untitled/For Iterator Subsystem1' at time 0. Stopping simulation. There may be a singularity in the solution. If the model is correct, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)."
Here's what i have done in Simulink
No products are associated with this question.
% x(i+1)=x(i)+4*(x(i)-y(i)); % can be written as % x(i+1)-5x(i)=-4y(i) % z X(z)-5X(z)=-4Y(z) % H(z)=-4/(z-5) To get the result you can use a discrete transfer function with
numerator=-4 denominator=[1 -5] % input signal=y % output signal x