applySettingsFromShortcut
ショートカットからモデルに設定を適用
説明
applySettingsFromShortcut(
は、指定されたシステム ショートカット converter
,shortcutName
)shortcutName
から converter
オブジェクトに設定を適用します。
例
ショートカットを使用したモデルの変換用の構成
この例では、ショートカットを使用してモデルを固定小数点変換用に構成する方法を示します。
fxpdemo_feedback
モデルを開きます。
open_system('fxpdemo_feedback');
Controller サブシステムの DataTypeWorkflow.Converter
オブジェクトを作成します。
converter = DataTypeWorkflow.Converter('fxpdemo_feedback/Controller');
ショートカットを使用してモデルを変換用に構成します。converter
オブジェクトの ShortcutsForSelectedSystem
プロパティにアクセスして、システムで使用可能なショートカットを検索します。
shortcuts = converter.ShortcutsForSelectedSystem
shortcuts = 6x1 cell array {'Range collection using double override' } {'Range collection with specified data types' } {'Range collection using single override' } {'Disable range collection' } {'Remove overrides and disable range collection'} {'Range collection using scaled double override'}
システムの理想的な範囲を収集するには、'Range collection using double override'
ショートカットを使用して、システムを倍精度データ型でオーバーライドし、インストルメンテーションを有効にします。
applySettingsFromShortcut(converter,shortcuts{1})
このショートカットはまた、コンバーター オブジェクトの current run name プロパティも更新します。
converter.CurrentRunName
ans = 'Ranges(Double)'
入力引数
converter
— コンバーター オブジェクト
DataTypeWorkflow.Converter
オブジェクト
設計対象のシステムのコンバーター オブジェクト。DataTypeWorkflow.Converter
オブジェクトとして指定します。
shortcutName
— ショートカットの名前
文字ベクトル
使用する設定を指定するショートカットの名前。文字ベクトルとして指定します。
例: applySettingsFromShortcut(converter,'Range collection using double override')
データ型: char
バージョン履歴
R2014b で導入
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)