File: matlab_interface_devel.rst

package info (click to toggle)
nipype 1.9.2-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,260 kB
  • sloc: python: 156,463; javascript: 9,246; tcl: 608; sh: 485; makefile: 168
file content (33 lines) | stat: -rw-r--r-- 869 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.. matlab_interface_devel:

===========================
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 appropriate inputs and outputs.

.. literalinclude:: matlab_example1.py

.. admonition:: Example source code

  You can download :download:`the source code of this example <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 and
output spec, you gain access to some useful MATLAB hooks

.. literalinclude:: matlab_example2.py

.. admonition:: Example source code

  You can download :download:`the source code of this example <matlab_example2.py>`.

.. include:: ../links_names.txt