Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D Documentation-116
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • 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
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • anywave
  • Documentation-116
  • 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
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
  • ICA
  • Imaginary Coherence
  • MATLAB anywave function
  • MATLAB_BIDS
  • MATLAB_change_sig_prop
  • MATLAB_debug
  • MATLAB_get_data
  • MATLAB_get_markers
  • MATLAB_get_props
  • MATLAB_init
View All Pages