MATLAB ヘルプ センター
ブロック パスを文字ベクトルの cell 配列に変換
cellarray = convertToCell(bp)
cellarray = convertToCell(bp) は、ブロック パスを文字ベクトルの cell 配列に変換します。
cellarray
bp
例
すべて折りたたむ
ModelReferenceHierarchy という名前のプロジェクトを開きます。
ModelReferenceHierarchy
openProject("ModelReferenceHierarchy");
プロジェクトで sldemo_mdlref_depgraph を最上位モデルとしたモデルの階層構造が開きます。
sldemo_mdlref_depgraph
Simulink.BlockPath オブジェクトを作成します。
Simulink.BlockPath
bp = Simulink.BlockPath(... {'sldemo_mdlref_depgraph/thermostat',... 'sldemo_mdlref_heater/Fahrenheit to Celsius',... 'sldemo_mdlref_F2C/Gain1'});
ブロック パスの要素を表す cell 配列を作成します。
cellarray = 3×1 cell {'sldemo_mdlref_depgraph/thermostat' } {'sldemo_mdlref_heater/Fahrenheit to Celsius'} {'sldemo_mdlref_F2C/Gain1' }
Simulink.SimulationData.BlockPath
完全に指定されたブロック パス。Simulink.BlockPath オブジェクトまたは Simulink.SimulationData.BlockPath オブジェクトとして指定します。このブロック パスは、モデルの階層構造が同じモデルを複数回参照する場合でも、モデルの階層構造内のブロックを一意に特定します。
ブロック パス要素。文字ベクトルの cell 配列として返されます。
R2010b で導入
getBlock
getLength
open
validate
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ