Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
online_research:start [2020/11/24 14:18]
spruitim
online_research:start [2020/11/24 14:18] (current)
spruitim
Line 4: Line 4:
  
 Overview page Overview page
- 
-<code matlab> 
-% Insert signal data into master struct: 
-data.signals.fs                 = fs; 
-data.signals.channels           = channels; 
-data.signals.channelUnits       = channelUnits; 
-data.signals.channelNames       = channelNames; 
-data.signals.channelDescription = channelDescription; 
- 
-% Generate the event data (as labels): 
-data.labels.t                   = ... 
-    ( double( vertcat( eventStruct.clockTick_ms ) ) ... 
-    - firstSampleTimestamp ) / 1000; 
- 
-data.labels.channels{1}            = ... 
-    strcat({'Label (Type: '}... 
-    , num2str(vertcat(eventStruct.type))... 
-    ,{', Code: '}... 
-    ,strtrim(num2str(vertcat(eventStruct.code)))... 
-    ,{', Msg: '}... 
-    ,eventStruct.msg... 
-    ,{')'}); 
- 
-data.labels.channelUnits{1}   = '-'; 
-data.labels.channelNames{1}   = 'Labels'; 
- 
-% When t is empty, create one timestamp at timepoint 0: 
-if isempty(data.labels.t) 
-    data.labels.t = 0; 
-end 
- 
- 
-</code> 
  
  
  • online_research/start.txt
  • Last modified: 3 months ago
  • by spruitim