Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 858 Bytes

matlab_interface_devel.rst

File metadata and controls

32 lines (18 loc) · 858 Bytes

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

.. literalinclude:: matlab_example2.py