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.

답변 (1개)

Arkadiy Turevskiy
Arkadiy Turevskiy 2012년 5월 14일

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

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

도움말 센터File Exchange에서 Simulink Control Design에 대해 자세히 알아보기

제품

질문:

2012년 5월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by