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

Last edited by Bruno Colombet Jun 06, 2024
Page history

MATLAB_send_markers

  • Introduction
    • Marker struct description
  • Usage

Introduction

Markers MUST be stored as a struct array before sending them to AnyWave.

Marker struct description

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.

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);
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