How to transfer stepper motor model from simulink to matlab code?:

Hello.
I have a model of stepper motor in simulink. There is a lot of feedbacks etc. Here it is: http://www.zimagez.com/zimage/przechwycenieobrazuekranu-01052012-152106.php I have to code the same model only using matlab, so I suppose using this functions: http://www.mathworks.com/help/toolbox/control/ref/f2-1014412.html#f2-1008915. Haw can I do it? Can u give me an example? I know that in function's reference there is an example, but not so complicated. Coding it I have always something undeclared, one variable included in another, which is undeclared etc. You know what I mean? Thanks for your time.
PS. Sorry about my english.

Respuestas (1)

Arkadiy Turevskiy
Arkadiy Turevskiy el 14 de Mayo de 2012
Your Simulink model looks like a linear model, so you should be able to express it as a state-space model. To do that, you can linearize your Simulink model.
Take a look at a few examples and doc to see how to do it: - example 1, example 2, doc.
HTH. Arkadiy

Comunidades de usuarios

Más respuestas en  Power Electronics Control

Categorías

Más información sobre Simulink Control Design en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 13 de Mayo de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by