| Signal Processing Blockset™ | ![]() |
Configure Simulink® environment for signal processing systems
dspstartup
dspstartup configures a number of Simulink environment parameters with settings appropriate for a typical signal processing project. When the Simulink environment has been successfully configured, the function displays the following message in the command window.
Changed default Simulink settings for signal processing systems (dspstartup.m).
To automatically configure the Simulink environment at startup, add a call to dspstartup.m from your startup.m file. If you do not have a startup.m file on your path, you can create one from the startupsav.m template in the toolbox/local directory.
To edit startupsav.m, simply replace the load matlab.mat command with a call to dspstartup.m, and save the file as startup.m. The result should look like this.
%STARTUP Startup file % This file is executed when MATLAB starts up, % if it exists anywhere on the path. dspstartup;
For more information, see the description for the startup command in the MATLAB® documentation and Configuring Simulink for Signal Processing Models in the Signal Processing Blockset™ Getting Started Guide.
The dspstartup.m script executes the following commands. See Model and Block Parameters in the Simulink documentation for complete information about a particular setting.
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');
set_param(getActiveConfigSet(0), 'RollThreshold', 2);| startup | MATLAB |
![]() | dsplib | liblinks | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |