This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Configure Simulink environment for signal processing systems


dspstartup will be removed in a future release. Use DSP Simulink® model templates instead. For more information on DSP Simulink model templates, see Configure the Simulink Environment for Signal Processing Models.




dspstartup configures Simulink environment parameters with settings appropriate for a typical signal processing project. You can use the dspstartup function in the following ways:

  • At the MATLAB® command line. Doing so configures the Simulink environment in your current session for signal processing projects.

  • By adding a call to the dspstartup function from your startup.m file. When you do so, MATLAB configures your Simulink environment for typical signal processing projects each time you launch MATLAB.

When the function successfully configures your Simulink environment, MATLAB displays the following message in the command window.

Changed default Simulink settings for signal processing 
systems (dspstartup.m).

The dspstartup.m file executes the following commands.

set_param(0, ...
          'SingleTaskRateTransMsg','error', ...
          'multiTaskRateTransMsg', 'error', ...
          'Solver',                'fixedstepdiscrete', ...
          'EnableMultiTasking',    'Off', ...
          'StartTime',             '0.0', ...
          'StopTime',              'inf', ...
          'FixedStep',             'auto', ...
          'SaveTime',              'off', ...
          'SaveOutput',            'off', ...
          'AlgebraicLoopMsg',      'error', ...
          'SignalLogging',         'off');


Add a call to the dspstartup function from your startup.m file:

  1. To find out if there is a startup.m file on your MATLAB path, run the following code at the MATLAB command line:

    which startup.m
  2. If MATLAB returns 'startup.m' not found, see Specify Startup Options (MATLAB) to learn more about the startup.m file.

    If MATLAB returns a path to your startup.m file, open that file for editing.

    edit startup.m
  3. Add a call to the dspstartup function. Your startup.m file now resembles the following code sample:

    %STARTUP   Startup file
    %   This file is executed when MATLAB starts up, if it exists 
    %   anywhere on the path.  In this case, the startup.m file
    %   runs the dspstartup.m file to configure the Simulink
    %   environment with settings appropriate for typical 
    %   signal processing projects.

See Also

Introduced before R2006a

Was this topic helpful?