getfullname
ブロックまたはラインを特定するパスを取得
説明
例
ブロック パスの取得
例を開きます。次に、vdp
モデルを開きます。
open_system('vdp')
モデルで、Mu
という名前のブロックを対話的に選択します。
現在選択されているブロックを特定するパスを取得します。
blkpath = getfullname(gcb)
blkpath = 'vdp/Out2'
信号線パスの取得
例を開きます。次に、vdp
モデルを開きます。
open_system('vdp')
モデルで、Mu
という名前のブロックの出力端子に接続されている信号線を選択します。
現在選択されているラインのハンドルを取得します。
line = find_system(gcs, 'SearchDepth', 1, 'FindAll', 'on', ... 'Type', 'line', 'Selected', 'on');
現在選択されているラインを特定するパスを取得します。
linepath = getfullname(line)
linepath = 0x1 empty cell array
パスは、ラインの接続元端子を記述します。
入力引数
handle
— ブロックまたはライン
ハンドル | ハンドルの cell 配列
ブロックまたはライン。ハンドルまたはハンドルの cell 配列として指定します。
例: getfullname(gcb)
例: getfullname({handle1,handle2})
データ型: double
| cell
バージョン履歴
R2007a で導入
参考
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)