| Using Simulink | Search  Help Desk |
Accessing the MATLAB Workspace
You can type any MATLAB expression at thesldebug prompt. For example, suppose you are at a breakpoint and you are logging time and output of your model as tout and yout. Then, the following command
(sldebug ...) plot(tout, yout)creates a plot. Suppose you would like to access a variable whose name is the same as the complete or incomplete name of an
sldebug command, for example, s, which is a partial completion for the step command. Typing an s at the sldebug prompt steps the model However,
(sldebug...) eval(`s')displays the value of the variable
s.