stepper motor simulation without simscape?
1 回表示 (過去 30 日間)
古いコメントを表示
I am trying to build a stepper motor simulation in simulink with a PID loop, but is there anyway to model the motor without using the stepper motor blocks from Simscape? As I don't have the system embedded onto Matlab.
Thank you
0 件のコメント
回答 (1 件)
Stefan Reich
2016 年 7 月 28 日
編集済み: Stefan Reich
2016 年 7 月 28 日
Hey Angeline, I use something like this:
signal = @(x,s,t) heaviside(x-s)-heaviside(x-t);
runtime = 0:.01:10;
start = 2;
finish = 4;
plot(runtime,signal(runtime,start,finish))
ylim([-0.2 1.2])
0 件のコメント
コミュニティ
その他の回答 パワー エレクトロニクス コミュニティ
参考
カテゴリ
Help Center および File Exchange で Electrical Systems についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!