User`s guide

Code Validation
14-19
The “!” character passes the command that follows it to the operating system.
This command, therefore, runs the stand-alone version of
countersdemo (not
the M-file).
To obtain the data from the stand-alone program, load the file
countersdemo.mat:
load countersdemo
Then look at the workspace variables:
who
Your variables are:
Enable_Signal rt_Triggered_Counter
Enabled_Counter rt_tout
Triggered_Counter tout
rt_Enable_Signal
rt_Enabled_Counter
The stand-alone Ada program prepends rt_ to the logged variable names to
distinguish them from the variables Simulink logged.
You can now use MATLAB to plot the three workspace variables as a function
of time:
plot(rt_Enable_Signal(:,1),rt_Enable_Signal(:,2))
figure
plot(rt_Enabled_Counter(:,1),rt_Enabled_Counter(:,2))
figure
plot(rt_Triggered_Counter(:,1),rt_Triggered_Counter(:,2))