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.

Réponses (1)

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

Communautés

Plus de réponses dans  Power Electronics Control

Catégories

En savoir plus sur Simulink Control Design dans Centre d'aide et File Exchange

Produits

Question posée :

le 13 Mai 2012

Community Treasure Hunt

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

Start Hunting!

Translated by