필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Easier way to build large nonlinear dynamic model and use control design

조회 수: 2 (최근 30일)
Victor
Victor 2012년 5월 29일
마감: MATLAB Answer Bot 2021년 8월 20일
I am building a large nonlinear dynamic model and would like to use analysis tools that are in Simulink control design. However, creating the model using Simulink blocks is not a practical solution because there are so many calculations involved. Making small changes to the model is tedious and time-consuming when everything is in blocks.
I thought that converting the blocks into an Embedded Matlab function would make things easier, but several major problems were introduced. The main issue is that Embedded Matlab functions give a compiler error when I use any mathematical operator that potentially yields infinite or complex numbers (such as log, sqrt, etc) even though the values are always within realistic limits during simulation. I use a lot of these operators in my model, so I end up having to convert these functions back to Simulink blocks for everything to work.
What is the easiest way to do what I just described? If I stick with Simulink, is there a way to get past the compiler error when using operators such as log and sqrt? If possible, I want to avoid manually generating the linearized state space matrices (i.e. not using Simulink) unless its the only solution to my problem.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by