DSP Blockset | ![]() ![]() |
Using dspstartup.m
There are two ways to use the dspstartup
M-file to preconfigure Simulink for DSP simulations:
dspstartup
, to preconfigure all of the models that you subsequently create. Existing models are not affected.dspstartup
within the startup
.m
file. This is an efficient way to use dspstartup
if you would like these settings to be in effect every time you start Simulink.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
, and save the file as startup.m
. The result should look like something like this.
%STARTUP Startup file
% This file is executed when MATLAB starts up,
% if it exists anywhere on the path.
dspstartup;
The default settings in dspstartup
will now be in effect every time you launch Simulink.
For more information about performing automated tasks at startup, see the documentation for the startup
command in the MATLAB Function Reference.
![]() | Configuring Simulink for DSP Systems | Customizing dspstartup.m | ![]() |