Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
slref.pdf
Скачиваний:
39
Добавлен:
26.03.2015
Размер:
16.01 Mб
Скачать

Model Parameters

Model Parameters in Alphabetical Order (Continued)

 

Parameter

Description

Values

 

 

ZeroCrossControl

Enable zero-crossing

string —

 

 

 

detection.

{'UseLocalSettings'}

 

 

 

Set by Zero-crossing control

| 'EnableAll' |

 

 

 

on the Solver pane of the

'DisableAll'

 

 

 

 

 

 

 

Configuration Parameters

 

 

 

 

dialog box.

 

 

 

ZoomFactor

Zoom factor of the Simulink

string — {'100'}

 

 

 

Editor window expressed as a

| 'FitSystem' |

 

 

 

percentage of normal (100%)

'FitSelection'

 

 

 

or by the keywords FitSystem

 

 

 

 

or FitSelection.

 

 

 

 

In the Simulink Editor, set by

 

 

 

 

the zoom commands on the

 

 

 

 

View menu.

 

 

Examples of Setting Model Parameters

These examples show how to set model parameters for the mymodel system.

This command sets the simulation start and stop times.

set_param('mymodel','StartTime','5','StopTime','100')

This command sets the solver to ode15s and changes the maximum order.

set_param('mymodel','Solver','ode15s','MaxOrder','3')

This command associates a SaveFcn callback.

set_param('mymodel','SaveFcn','my_save_cb')

8-95

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]