removeReference
説明
removeReference(
は、archDataObj
,refDict
)refDict
として指定された Simulink® データ ディクショナリ参照をデータ ディクショナリの [アーキテクチャ データ] セクション archDataObj
から削除します。
例
Simulink データ ディクショナリの [アーキテクチャ データ] セクションからの参照ディクショナリの削除
参照ディクショナリ ReferenceInterfaces1.sldd
および ReferenceInterfaces2.sldd
をデータ ディクショナリ MyInterfaces.sldd
の [アーキテクチャ データ] セクションから削除します。関連する関数のワークフローの詳細を示す例については、Create Architectural Data Object and Use It to Configure Architectural Dataを参照してください。
参照ディクショナリの名前を取得します。
archDataObj = Simulink.dictionary.archdata.open("MyInterfaces.sldd");
refDicts = getReferences(archDataObj)
refDicts = 2×1 cell array {'C:\work\ReferenceInterfaces1.sldd'} {'C:\work\ReferenceInterfaces2.sldd'}
参照データ ディクショナリを表すアーキテクチャ データ オブジェクトまたは文字ベクトルを使用して、参照ディクショナリを削除します。
refArchDataObj = Simulink.dictionary.archdata.open("ReferenceInterfaces1.sldd"); removeReference(archDataObj,refArchDataObj); removeReference(archDataObj,"ReferenceInterfaces2.sldd"); refDicts = getReferences(archDataObj)
refDicts = 0×1 empty cell array
入力引数
archDataObj
— アーキテクチャ データ オブジェクト
Simulink.dictionary.ArchitecturalData
オブジェクト
アーキテクチャ データ オブジェクト。Simulink.dictionary.ArchitecturalData
オブジェクトとして指定します。
refDict
— 参照データ ディクショナリ
文字ベクトル | string スカラー | Simulink.dictionary.ArchitecturalData
オブジェクト
参照データ ディクショナリ。文字ベクトル、string スカラー、または Simulink.dictionary.ArchitecturalData
オブジェクトとして指定します。
例: "ReferenceDictionary.sldd"
バージョン履歴
R2023b で導入
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)