linking simulink from m-file
現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
古いコメントを表示
1 投票
採用された回答
Kaustubha Govind
2012 年 1 月 23 日
To call MATLAB code from a Simulink model, use one of the three MATLAB Function Blocks available. To run Simulink models from MATLAB, use the sim command. Also see Command Line Functionality for Simulink.
7 件のコメント
Krishnendu Mukherjee
2012 年 1 月 24 日
actually i want to run a model through a m-file.
actually i have an circuit on dc motor speed control. to optimize the pi controller an optimizing algorithm(ICA) is required,which is in m-file. i want to run the m-file but the model should also be called through the m-file as required. plz help in this topic.
TAB
2012 年 1 月 25 日
Use sim() command to run simulink model from m-file.
See
>> doc sim
Krishnendu Mukherjee
2012 年 1 月 26 日
ok.if i use sim('modelname');.then only the model is processing.but how to get the simulated data.means in the modal if i want to get a perticular output/signal.then what command should i use?
Kaustubha Govind
2012 年 1 月 26 日
Connect an Outport block to the signal that you need to log. The sim() command returns it in the 'Y' if using the "[T,X,Y] =sim('model',Timespan, Options, UT)" syntax, and in simOut.get('yout'); if using the newer "simOut = sim('model','SaveOutput','on','OutputSaveName','yout')" syntax.
Balvinder Singh
2019 年 3 月 30 日
can we use this command for two plant in simulation. kindly suggest the proper format of command for two different plant in same simulation
Md Toukir Hasan
2021 年 1 月 24 日
What is the actual syntax of calling simulink file in matlab script? Version is 2020b. Quick response please
Steven Lord
2021 年 1 月 25 日
https://www.mathworks.com/help/simulink/run-individual-simulations.html
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Simulink Environment Customization についてさらに検索
参考
2012 年 1 月 21 日
2021 年 1 月 25 日
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
