Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D Documentation
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • anywave
  • Documentation
  • Wiki
  • MATLAB_send_markers

MATLAB_send_markers · Changes

Page history
transferring wiki from anywave to documentation authored Jun 06, 2024 by Bruno Colombet's avatar Bruno Colombet
Show whitespace changes
Inline Side-by-side
Showing with 39 additions and 0 deletions
+39 -0
  • MATLAB_send_markers.md MATLAB_send_markers.md +39 -0
  • No files found.
MATLAB_send_markers.md 0 → 100644
View page @ 2d1e05f5
[[_TOC_]]
# Introduction
Markers **MUST** be stored as a struct array before sending them to AnyWave.
## Marker struct description
````matlab
Marker.label; % label of marker
Marker.position; % position in seconds.
Marker.duration; % duration in seconds.
Marker.value; % value associated with marker
Marker.channels; % cell array of strings. Labels of targeted channels. Empty if the marker is GLOBAL.
Marker.color; % string coding the color in RVB. Must start with #. Example for red : '#FF0000'
````
Not all fields are required. The only required fields are:
- label
- position
If other fields are not specified, the default values for that fields will be taken into account.
Duration will be 0s, value will be 0., targets will be an empty cell array, and colour an empty string meaning the default color will be black.
# Usage
Sending 2 markers to AnyWave.
One is a GLOBAL marker with a duration of 5s and colored in red.
The second is a marker targeting a channel, with no duration.
````matlab
function main(varargin)
anywave('init', varargin);
markers(1).label = 'first marker';
markers(1).position = 1.;
markers(1).duration = 5;
markers(1).color = '#FF0000';
markers(2).label = 'second marker';
markers(2).position = 6;
markers(2).channels = {'A1'}; % this marker will target channel A1
anywave('send_markers', markers);
````
\ No newline at end of file
Clone repository
  • Build_AnyWave
  • CLI
  • CLI_List
  • Changes
  • ExportData
  • MATLAB_API
  • MATLAB_BIDS
  • MATLAB_debug
  • MATLAB_functions
  • MATLAB_get_data
  • MATLAB_get_data_ex
  • MATLAB_get_markers
  • MATLAB_get_props
  • MATLAB_init
  • MATLAB_run
View All Pages