Configure Simulink environment for signal processing systems
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', ... '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:
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.
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;