このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
findprop
クラス: handle
meta.property
オブジェクトの検索
構文
mp = findprop(h,property)
説明
は、mp
= findprop(h
,property
)h
オブジェクトの指定したプロパティ名に関連付けられている meta.property
オブジェクトを返します。property
には、h
のクラスが定義するプロパティ、または h
オブジェクト専用に定義される動的プロパティを指定できます。
入力引数
h
— ハンドル オブジェクト
ハンドル
ハンドル オブジェクト。スカラー ハンドルとして指定します。
property
— プロパティ名
文字ベクトル | string スカラー
プロパティ名。大文字と小文字を区別する、引用符付きのテキストとして指定します。
データ型: char
| string
出力引数
mp
— meta.property
オブジェクト
meta.property
| meta.DynamicProperty
指定した名前のプロパティと関連付けられている meta.property
オブジェクト。findprop
がオブジェクト h
でそのプロパティを検出しない場合、findprop
は 0 行 1 列の空の meta.property
オブジェクトを返します。プロパティが動的プロパティである場合、この関数は meta.DynamicProperty
オブジェクトを返します。
例
プロパティの属性の表示
containers.Map Count プロパティの現在の属性値を表示します。
mp = findprop(containers.Map,'Count');
disp(mp)
property with properties: Name: 'Count' Description: 'Number of pairs in the collection' DetailedDescription: '' GetAccess: 'public' SetAccess: 'private' Dependent: 1 Constant: 0 Abstract: 0 Transient: 1 Hidden: 0 GetObservable: 0 SetObservable: 0 AbortSet: 0 NonCopyable: 1 PartialMatchPriority: 1 GetMethod: [] SetMethod: [] HasDefault: 0 Validation: [0x0 meta.Validation] DefiningClass: [1x1 meta.class]
拡張機能
スレッドベースの環境
MATLAB® の backgroundPool
を使用してバックグラウンドでコードを実行するか、Parallel Computing Toolbox™ の ThreadPool
を使用してコードを高速化します。
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)