... | @@ -59,6 +59,23 @@ args = anywave('init', varargin); |
... | @@ -59,6 +59,23 @@ args = anywave('init', varargin); |
|
````
|
|
````
|
|
When using the Plugin Creation Assistant of AnyWave, the file is automatically created.
|
|
When using the Plugin Creation Assistant of AnyWave, the file is automatically created.
|
|
|
|
|
|
|
|
## Command Line
|
|
|
|
You may want your plugin to be used when AnyWave is launched using the command line.
|
|
|
|
AnyWave can run processes/plugins when launched that way:
|
|
|
|
````bash
|
|
|
|
anywave --run MyPlugin --input_file <filepath> --plugin_option1 option --plugin_option2 option ...
|
|
|
|
````
|
|
|
|
### Handle command line options
|
|
|
|
By default the plugin will have all parameters passed to anywave in the resulting args variable after the call to:
|
|
|
|
````matlab`
|
|
|
|
args = anywave('init', varargin);
|
|
|
|
|
|
|
|
disp(args.plugin_option1); % value for plugin_option1 from the command line.
|
|
|
|
disp(args.plugin_option2); % value for plugin_option2 from the command line.
|
|
|
|
````
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Compiled plugin
|
|
# Compiled plugin
|
|
Using the MATLAB Compiler, you can create a standalone version of your plugin.
|
|
Using the MATLAB Compiler, you can create a standalone version of your plugin.
|
|
AnyWave can call the standalone version of your plugin if you add the following line in desc.txt:
|
|
AnyWave can call the standalone version of your plugin if you add the following line in desc.txt:
|
... | | ... | |