フィルターのクリア

コマンドラインから指​定のブロックを表示さ​せる方法はありますか​?

7 ビュー (過去 30 日間)
Takashi Namba
Takashi Namba 2016 年 4 月 28 日
回答済み: Akihiro Yasuda 2016 年 10 月 5 日
初心者です。 コマンドウィンドウからコマンドを打ち込んで 特定のブロックを表示させたいのですが 方法がわかりません。 ご教授お願いします
  2 件のコメント
Walter Roberson
Walter Roberson 2016 年 4 月 28 日
Approximate translation:
Is there a way to display a block of specified from the command line?
Beginner. By typing commands from the command window you want to display a particular block, but I do not know how. Your professor thank you.
Walter Roberson
Walter Roberson 2016 年 4 月 28 日
When you say "block", are you referring to Simulink?

サインインしてコメントする。

回答 (1 件)

Akihiro Yasuda
Akihiro Yasuda 2016 年 10 月 5 日
find_systemを使って対象ブロックのハンドルを検索・取得し、
open_systemを使用して頂ければ、
対象ブロックが表示され、そのブロックパラメーターも開かれます。
[コマンド例]
%モデルを開く
vdp
%ブロック名"Mu"を検索し、ハンドルを取得する
blk_handle = find_system(gcs,'Name','Mu')
%ブロックパを開く
open_system(blk_handle)
対象ブロックを強調したい場合は hilite_system(blk_handle) と実行すれば可能です。
関連資料は下記URL先を参照願います。

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by