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_run

Last edited by Bruno Colombet Jun 06, 2024
Page history

MATLAB_run

  • run a plugin and get results

run a plugin and get results

using the run command you can make anywave run any plugins that are command line compatible, like ica, h2, spectral, etc.

Example running h2 computation


% prepare cfg struct
cfg.process = 'h2';
cfg.time_window = 2; % h2 plugin parameters
cfg.step= 1;
cfg.max_lag=0.1;
% now pick channels from currently open file in anywave
% we suppose the data file open contains the following channels:
% TP1 TP2 TP3
cfg.pick_channels = {'TP1', 'TP2', 'TP3' };
% now use a specific marker to compute h2
cfg.use_markers = {'h2'};  % we assume there are markers labeled h2 in anywave

output = anywave('run', cfg);
% output is a struct containing resulting parameters after the process has been run.
% in our example the out struct will contain the result_file field which is a the full path to the .mat file generated by the h2 computation.
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