Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 1.1 KB

matlab_interface_devel.rst

File metadata and controls

42 lines (25 loc) · 1.1 KB

How to wrap a MATLAB script

Example 1

This is a minimal script for wrapping MATLAB code. You should replace the MATLAB code template, and define approriate inputs and outputs.

.. literalinclude:: matlab_example1.py

Example 2

By subclassing :class:`nipype.interfaces.matlab.MatlabCommand` for your main class, and :class:`nipype.interfaces.matlab.MatlabInputSpec` for your input spec, you gain access to some useful MATLAB hooks <<<<<<< HEAD

.. literalinclude:: matlab_example2.py


.. literalinclude:: matlab_example2.py

>>>>>>> cb80e24fc2a68758defcb16c7ab70092aa35b693