How do I solve/avoid this error?

3 次查看(过去 30 天)
Kah Wei
Kah Wei 2015-10-13
评论: Kah Wei 2015-10-19
Hello.I am Brandon.
I am building a model of a quadrotor in Simulink for my research.As I proceed to perform the simulation, I obtain the error message below:
"Error using main_quadrotor (line 21) Cannot solve algebraic loop involving 'Quadrotor_numerical/Derivative4' because it consists of blocks that cannot be assigned algebraic variables, such as blocks with discrete-valued outputs, blocks with non-double or complex outputs, Stateflow blocks, or nonvirtual subsystems. Consider breaking the algebraic loop. For example, add a delay or a memory block to the loop."
Is there any way for me to avoid this error at all?As adding memory block in the model always cause me numerical problem like singularity and so on.
Please do guide me on this and thanks.

回答(2 个)

MUHAMMED FASIL
MUHAMMED FASIL 2015-10-19
Add "unit delay" blocks in front of the "errored" blocks
  1 个评论
Kah Wei
Kah Wei 2015-10-19
Thanks for answer.I tried your suggestion and I am facing singularity issues.I exhausted all the available solvers and change the step size but still cant complete the simulation.

请先登录,再进行评论。


Walter Roberson
Walter Roberson 2015-10-19

类别

Help CenterFile Exchange 中查找有关 General Applications 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by