Skip to Main Content Skip to Search
Product Documentation

Simulink Preferences Window: Data Management Defaults Pane

Simulink Data Management Defaults Overview

Configure options for setting the default package that will be used in the Model Explorer, Data Object Wizard and Signal Properties. Configure options for using Simulink.saveVars and the Model Explorer to export variables to MATLAB scripts.

Configuration

  1. Use the drop-down list to set the default package that will be used in the Model Explorer, Data Object Wizard and Signal Properties.

  2. Use the text boxes to specify new default values to be used when exporting variables to MATLAB scripts:

    • Maximum elements in an array

    • Maximum levels of nesting

    • Dimensions for 2–D slice, if you want to use multidimensional array formatting

    • Maximum characters per line

  3. Close the window to apply your changes.

    Click Apply to apply your changes and keep the window open.

Your settings affect the behavior of the Simulink.saveVars function and the Model Explorer Export and Export Selected context menu items.

Package

Set the default package that will be used in the Model Explorer, Data Object Wizard and Signal Properties.

Settings

Default: Simulink

Command-Line Information

Parameter: DefaultDataPackage
Type: string
Value: any valid value
Default: Simulink

Maximum elements in an array

Limits the number of elements saved to a MATLAB script file for an array.

Settings

Default: 1000

Command-Line Information

Parameter: SaveVarsPreferences
Field: MaxNumberElements
Type: integer
Value: any valid value
Default: 1000

Maximum levels of nesting

Limits the number of levels of hierarchy saved to a MATLAB script file for an array.

Settings

Default: 20

Command-Line Information

Parameter: SaveVarsPreferences
Field: MaxNumberLevels
Type: integer
Value: any valid value
Default: 20

Use 2–D slice

Specify whether 2–D slice should be enabled for multidimensional array formatting.

Settings

Default: Off

On

Use 2–D slice to represent arrays of char, logic, or numeric data.

Off

Do not use 2–D slice to represent arrays of char, logic, or numeric data.

Command-Line Information

Parameter: SaveVarsPreferences
Field: Using2dSlice
Type: boolean
Value: 0 or 1
Default: 0

Dimensions for 2–D slice

Sets two dimensions for 2-D slices that represent n-D (where n is greater than 2) arrays of char, logic, or numeric data.

Settings

Default: [1 2]

Command-Line Information

Parameter: SaveVarsPreferences
Field: DimensionsFor2dSlice
Type: integer array
Value: any valid value
Default: [1 2]

Maximum characters per line

Sets the text wrap width in the MATLAB script file

Settings

Default: 76

Command-Line Information

Parameter: SaveVarsPreferences
Field: TextWidth
Type: integer
Value: any valid value
Default: 76
  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS