Skip to content

[[TOC]]

The core of a MATLAB plugin is the main function (located in main.m file).
This function is called by AnyWave once the plugin context is initialized.

anywave() main matlab function

Every requests to anywave should be done using the anywave() function.

The command parameter

The fist parameter to anywave function must be a string containing the command to process.
Here are the current supported commands:

command description Documentation
init must be called first! How to use init
get_data Request data. Documentation
get_markers Request markers Documentation
send_markers Send new markers Documentation
send_message Send a string message (for logging purpose) Documentation
get_props Get global settings related to the current file Documentation
change_sig_prop apply new filter options or color to channels Documentation
ica_command request anywave to reject or undo rejection of IC's not yet documented
debug_connect Activate debug/developer mode Documentation
run run a plugin Documentation

Global settings for the plugin

Once you called anywave('init', varargin) or anywave('debug_connect', port); a structure is returned containing all parameters currently in use in AnyWave's context.
As the parameters can change over time, the best documentation you can have is to start a debug session in MATLAB and just use the disp() function to see the contents of the args structure after the call to:

args = anywave('init', varargin);
disp(args);