NIPY logo

Table Of Contents

Previous topic

interfaces.io

Next topic

interfaces.rest

This Page

interfaces.matlab

Module: interfaces.matlab

Inheritance diagram for nipype.interfaces.matlab:

digraph inheritance9517efab27 { rankdir=LR; ratio=compress; fontsize=14; size="6.0, 8.0"; "base.CommandLine" [shape=ellipse,URL="nipype.interfaces.base.html#nipype.interfaces.base.CommandLine",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "base.Interface" -> "base.CommandLine" [arrowsize=0.5,style="setlinewidth(0.5)"]; "matlab.MatlabCommandLine" [shape=ellipse,URL="#nipype.interfaces.matlab.MatlabCommandLine",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "base.CommandLine" -> "matlab.MatlabCommandLine" [arrowsize=0.5,style="setlinewidth(0.5)"]; "base.Interface" [shape=ellipse,URL="nipype.interfaces.base.html#nipype.interfaces.base.Interface",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; }

General matlab interface code

MatlabCommandLine

class nipype.interfaces.matlab.MatlabCommandLine(matlab_cmd=None, **inputs)

Bases: nipype.interfaces.base.CommandLine

Object that sets up Matlab specific tools and interfaces

>>> import nipype.interfaces.matlab as matlab
>>> matlab.MatlabCommandLine().matlab_cmd = "matlab.2009a -nodesktop -nosplash"
>>> mcmd = matlab.MatlabCommandLine()
>>> mcmd.inputs.script_lines = "which('who')"
>>> out = mcmd.run() # doctest: +SKIP
__init__(matlab_cmd=None, **inputs)
initializes interface to matlab (default ‘matlab -nodesktop -nosplash’
aggregate_outputs()

Called to populate outputs

Currently, search for discussion of this on private e-mails between Dav and Satra (ugh!). This needs to get in here!

cmdline
get_input_info()

Provides information about file inputs to copy or link to cwd.

Notes

see spm.Realign.get_input_info

inputs_help()
Parameters:

(all default to None and are unset) :

script_lines : string

matlab_script or function name or matlab code to run

cwd : string

working directory for command

run()
set_matlabcmd(cmd)
reset the base matlab command