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

1 view (last 30 days)
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.

Answers (1)

Arkadiy Turevskiy
Arkadiy Turevskiy on 14 May 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

Communities

More Answers in the  Power Electronics Control

Products

Community Treasure Hunt

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

Start Hunting!