MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Guida Utente Pagina 84

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 130
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 83
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))
Vedere la pagina 83
1 2 ... 79 80 81 82 83 84 85 86 87 88 89 ... 129 130

Commenti su questo manuale

Nessun commento