![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/174278/image.bmp)
How can I avoid Algebraic loops In these equations
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Anuj
el 27 de En. de 2014
Comentada: Anuj
el 28 de En. de 2014
Hi,
I Have two equations of the form-
1) dy/dt = A - By - Cdx/dt + Dx, and
2) dx/dt = E - Fx - Gdy/dt + Hy.
I want to apply them in a Simulink model, Is there any way I can do it without using Algebraic loops?
Thanks
0 comentarios
Respuesta aceptada
A Jenkins
el 28 de En. de 2014
If you are smart about it, you may be able to avoid a memory block. Depending on the properties of your numbers (for example, if 1+GC is invertible), you may be able to rewrite the equations:
dy/dt = A-B*y-C*(dx/dt)+D*x
dx/dt = E-F*x-G*(dy/dt)+H*y
dx/dt = E-F*x-G*(A-B*y-C*(dx/dt)+D*x)+H*y
dx/dt = (E-F*x-G*(A-B*y+D*x)+H*y)/(1+GC)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/174278/image.bmp)
Más respuestas (1)
Ver también
Categorías
Más información sobre General Applications en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!