User`s guide
Signal Logging to a Disk Drive
3-47
1 In the MATLAB window, type
ScopeData
MATLAB lists the structure of the variable ScopeData. The variable
ScopeData is a MATLAB structure containing the fields time vector, signal
structure, and a string containing the block name.
ScopeData =
time: [10000x1 double]
signals: [1x1 struct]
blockName: 'rtwin_model/Scope'
2 To list the MAT-files saved to your disk drive, type
dir *.mat
MATLAB displays the MAT-files in your current working directory.
data_0.mat
3 To clear the MATLAB workspace and load the scope data, type
clear
load data_0
who
MATLAB displays
Your variables are:
ScopeData_0
4 To plot the first 1000 points, type
plot(ScopeData_0.time(1:1000),ScopeData_0.signals.values(1:1000)
)
MATLAB plots the first 1000 samples from 0.0000 to 0.9990 second.