empty
クラス: coder.Dictionary
名前空間: coder
構文
tf = empty(coderDictionaryObj)
説明
は、tf
= empty(coderDictionaryObj
)coder.Dictionary
オブジェクト coderDictionaryObj
が空である場合に true
を返します。coder.dictionary.remove
を使用してモデルまたはデータ ディクショナリから Embedded Coder ディクショナリを削除すると、Embedded Coder ディクショナリは空になります。
入力引数
coderDictionaryObj
— Embedded Coder ディクショナリ オブジェクト
coder.Dictionary
オブジェクト
Embedded Coder ディクショナリ。coder.Dictionary
オブジェクトとして指定します。
出力引数
tf
— true または false の結果
1
| 0
| logical 配列
true または false の結果。データ型 logical
の 1
または 0
として返されます。
例
Embedded Coder ディクショナリ オブジェクトが空かどうかの確認
ベース ワークスペースに 'dataDict.sldd'
という名前のデータ ディクショナリを作成し、そのデータ ディクショナリに Embedded Coder ディクショナリを作成します。ベース ワークスペースでは、coder.Dictionary
オブジェクト myCoderDictObj
を使用して Embedded Coder ディクショナリを表します。
Simulink.data.dictionary.create('dataDict.sldd'); myCoderDictObj = coder.dictionary.create('dataDict.sldd');
Embedded Coder ディクショナリが空かどうかを確認します。Embedded Coder ディクショナリを作成したときに Simulink
パッケージから定義が読み込まれたため、このディクショナリは最初は空ではありません。
empty(myCoderDictObj)
ans = logical 0
データ ディクショナリから Embedded Coder ディクショナリを削除して、このディクショナリが空かどうかを再度確認します。
coder.dictionary.remove('dataDict.sldd');
empty(myCoderDictObj)
ans = logical 1
バージョン履歴
R2019b で導入
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)