User`s guide
2 Simulink and the DSP Blockset
2-6
1 Type dspstartup at the MATLAB command line to configure Simulink for
DSP simulation (optional).
One of the things that
dspstartup does is set the Stop time value in the
Simulation parameters dialog box to inf for all new models. The inf
setting instructs Simulink to run the model until you click the simulation
stop button. You can access this dialog box and enter a different
Stop time
value by selecting Simulation parameters from the model window’s
Simulation menu.
2 Start Simulink by clicking the button in the MATLAB toolbar. The
Library Browser appears.
3 Select New > Model from the File menu in the Library Browser. A new
model window appears on your screen.
4 Add a Sine Wave block to the model.
a In the Library Browser, click the symbol next to DSP Blockset to
expand the hierarchical list of DSP libraries.
b In the expanded list, click DSP Sources to view the blocks in the DSP
Sources library.
c Drag the Sine Wave block into the new model window.
5 Add a Matrix Sum block to the model.
a Click the symbol next to Math Functions to expand the Math
Functions library.
b Click the symbol next to Matrices and Linear Algebra to expand the
Matrices and Linear Algebra sublibrary.
c In the expanded list, click Matrix Operations to view the blocks in the
Matrix Operations library.
d Drag the Matrix Sum block into the model window.