-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSnippet_Cloth_8_4_L_Chart.m
33 lines (32 loc) · 1.47 KB
/
Snippet_Cloth_8_4_L_Chart.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
classdef Snippet_Cloth_8_4_L_Chart < charts.Snippet__Base_Chart
% c = Snippet_Cloth_8_4_L_Chart('YData',Y,Name,Value,...)
% Plots one time-series snippet for every column of matrix Y.
% Locations of each column of Y correspond to TMSi- 1-indexed channel
% ordering schema, which depends on the electrode array Montage that is
% used in the EMG recording. Subclasses determine the Montage and plot
% the snippet signals according to the relative channel locations (mm);
% the length of the snippet is always scaled to fit within a box
% defined by the extents of the 'Scale' property.
% You can also specify the additonal name-value arguments.
%
% NOTE: Only update 'YData' with data for channels with the
% corresponding 'Enable' property element set to true. If a channel is
% not enabled, then do not update 'YData' for that channel.
methods
function obj = Snippet_Cloth_8_4_L_Chart(varargin)
[email protected]__Base_Chart(varargin{:});
end
end
methods (Access = protected)
function setup(obj)
obj.Montage = "L84";
cfg = charts.get_config('config.yaml', obj.Montage);
obj.Outline = [cfg.XOutline; cfg.YOutline]';
[email protected]__Base_Chart(obj);
set(obj, ...
'XScale', cfg.XScale, ...
'XGrid', reshape(cfg.XGrid, 8, 8), ...
'YGrid', reshape(cfg.YGrid, 8, 8));
end
end
end