User`s guide

3 Working with Real-Time Workshop
3-28
!f14rtw
The executing program writes the following messages to the console.
** starting the model **
** created f14rtw.mat **
6 Load the data file f14rtw.mat and observe the workspace variables.
load f14rtw
whos rt*
Name Size Bytes Class
rt_Angle_of_attack 601x2 9616 double array
rt_Pilot_G_force 601x2 9616 double array
rt_Stick_input 601x2 9616 double array
rt_tout 601x1 4808 double array
rt_yout 601x2 9616 double array
Grand total is 5409 elements using 43272 bytes
7 Use MATLAB to plot three workspace variables created by the executing
program as a function of time.
figure('Name','Stick_input')
plot(rt_tout,rt_Stick_input(:,2))
figure('Name','Pilot_G_force')
plot(rt_tout,rt_Pilot_G_force(:,2))
figure('Name','Angle_of_attack')
plot(rt_tout,rt_Angle_of_attack(:,2))