User`s guide

Quick Start Tutorials
3-27
3 Use the whos command to observe that the array variables Stick_input,
Pilot_G_force
, and Angle_of_attack have been saved to the workspace.
4 Plot one or more of the logged variables against simulation time. For
example,
plot(tout, Stick_input(:,2))
Logging Data from the Generated Program
Since you have modified the model, you must rebuild and run the f14rtw
executable in order to obtain a valid data file:
1 Set the variable name modifier to be used by Real-Time Workshop. From
the
Configuration Parameters dialog, choose the Real-Time Workshop
configuration node and select its
Interface tab.
2 In the Symbols section of the dialog, set the MAT-file variable name
modifier
pop-up menu to rt_. This prefixes rt_ to each variable that you
selected to be logged in part 1 of this exercise.
3 Click Apply.
4 Generate code and build an executable: Click the Build button, type
Ctrl+B, or select Build Model from the Real-Time Workshop submenu of
the
Tools menu in the model window. Status messages in the console
window track the build process.
5 When the build finishes, run the stand-alone program from MATLAB.