MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Guide de l'utilisateur Page 84

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 130
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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))
Vue de la page 83
1 2 ... 79 80 81 82 83 84 85 86 87 88 89 ... 129 130

Commentaires sur ces manuels

Pas de commentaire