How can you generate matlab code from a simulink block?

Antworten (1)

Andreas Goser
Andreas Goser am 25 Feb. 2014

0 Stimmen

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 Kommentare

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.
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 25 Feb. 2014

Kommentiert:

am 25 Feb. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by