You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By subclassing **MatlabCommand** for your main class, and **MatlabInputSpec** for your input and output spec, you gain access to some useful MATLAB hooks
66
+
67
+
.. testcode::
68
+
69
+
import os
70
+
from nipype.interfaces.base import File, traits
71
+
from nipype.interfaces.matlab import MatlabCommand, MatlabInputSpec
72
+
73
+
74
+
class HelloWorldInputSpec( MatlabInputSpec):
75
+
name = traits.Str( mandatory = True,
76
+
desc = 'Name of person to say hello to')
77
+
78
+
class HelloWorldOutputSpec( MatlabInputSpec):
79
+
matlab_output = traits.Str( )
80
+
81
+
class HelloWorld( MatlabCommand):
82
+
""" Basic Hello World that displays Hello <name> in MATLAB
83
+
84
+
Returns
85
+
-------
86
+
87
+
matlab_output : capture of matlab output which may be
0 commit comments