| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Signal Processing Blockset |
| Contents | Index |
| Learn more about Signal Processing Blockset |
dspstartup
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. See Model and Block Parameters in the Simulink documentation.
set_param(0, ...
'SingleTaskRateTransMsg','error', ...
'multiTaskRateTransMsg', 'error', ...
'Solver', 'fixedstepdiscrete', ...
'SolverMode', 'SingleTasking', ...
'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:
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
If MATLAB returns 'startup.m' not found., see Startup Options in the MATLAB documentation 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
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. dspstartup;
![]() | dsplib | liblinks | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |