Simulink のシミュレーション結果をアニメーションで表示するためにはどうすればよいですか?
9 views (last 30 days)
Show older comments
MathWorks Support Team
on 5 Jul 2010
Edited: MathWorks Support Team
on 11 Jan 2023
Simulink のシミュレーション結果をアニメーションで表示する方法を教えてください。
Accepted Answer
MathWorks Support Team
on 11 Jan 2023
Edited: MathWorks Support Team
on 11 Jan 2023
Simulinkでアニメーションを表示する場合、MATLAB file S-Functionブロックや MATLAB Function ブロックを使用する方法があります。
ヘルプ画面の下記の下記ツリーを辿ると、MATLAB file S-Functionブロックを使用してアニメーションを行っているデモを参照することができます。
(MATLAB バージョンによって、デモのタイトルが多少異なる場合があります。)
Simulink
->例
->一般分野への適用
->アニメーションを使った倒立振子
->アニメーションを使った水槽の水量変化
->2個の跳ねるボールボール: 適応ゼロクロッシング位置の使用
MATLAB Function ブロックを使用したデモは下記です。
->MATLAB Functionブロックを使用したらせん状の銀河形成シミュレーション
なお、MATLAB file S-Functionでアニメーションを表示する場合のテンプレートとなるファイルを、以下の方法で入手可能です。
1) コマンドウィンドウから以下のコマンドを実行します。
>> sfundemos
2) S-Function Examples から "MATLAB file S-functions" のブロックをダブルクリックして開きます。
3) "Level-2 MATLAB file S-functions" をダブルクリックして開きます。
4) "Level-2 MATLAB file template" をダルクリックして開きます。
また、オプション製品のSimulink 3D Animationを使用すると、3次元アニメーションを表示することができます。
・Simulink 3D Animation
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!