How can you generate matlab code from a simulink block?

조회 수: 1 (최근 30일)
David Dijemeni
David Dijemeni 2014년 2월 25일
댓글: Andreas Goser 2014년 2월 25일
How can you generate matlab code from simulink block?

답변 (1개)

Andreas Goser
Andreas Goser 2014년 2월 25일
I have not heard of this being possible. The point is a block alone does not mean anything. It needs to be seen in context with the signal going into, the sample times of other blocks and specifically all model setting like solvers.
  댓글 수: 2
David Dijemeni
David Dijemeni 2014년 2월 25일
Yes I agree with you. I have a slightly complicated controller designed by a friend in simulation and I wanted to derive transfer function for the controller. I know Matlab can do it because I can run the step response.
Andreas Goser
Andreas Goser 2014년 2월 25일
There might be specific solutions for this, but I am not an expert here. Lets wait for others. However, I would say there are ways to linearize the part of your Simulink model that is the controler and mover this into MATLAB.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by