class_docstr: Interface that runs matlab code
  
  >>> import nipype.interfaces.matlab as matlab
  >>> mlab = matlab.MatlabCommand(mfile=False)  # don't write script file
  >>> mlab.inputs.script = "which('who')"
  >>> out = mlab.run()  # doctest: +SKIP
class_docstr_tok: ["Interface","that","runs","matlab","code",">",">",">","import","nipype.interfaces.matlab","as","matlab",">",">",">","mlab","=","matlab.MatlabCommand","(","mfile=False",")","#","do","n't","write","script","file",">",">",">","mlab.inputs.script","=","``","which","(","'who","'",")","''",">",">",">","out","=","mlab.run","(",")","#","doctest",":","+SKIP"]
docstr: Set the default MATLAB command line for MATLAB classes.
  
  This method is used to set values for all MATLAB
  subclasses.  However, setting this will not update the output
  type for any existing instances.  For these, assign the
  <instance>.inputs.matlab_cmd.
docstr_tok: ["Set","the","default","MATLAB","command","line","for","MATLAB","classes",".","This","method","is","used","to","set","values","for","all","MATLAB","subclasses",".","However",",","setting","this","will","not","update","the","output","type","for","any","existing","instances",".","For","these",",","assign","the","<","instance",">",".inputs.matlab_cmd","."]
code: def set_default_matlab_cmd(cls, matlab_cmd):
      """Set the default MATLAB command line for MATLAB classes.
  
      This method is used to set values for all MATLAB
      subclasses.  However, setting this will not update the output
      type for any existing instances.  For these, assign the
      <instance>.inputs.matlab_cmd.
      """
      cls._default_matlab_cmd = matlab_cmd
  
file_path: nipype/nipype/interfaces/matlab.py
imports: import os
  from ..None import config
  from .base import CommandLineInputSpec, InputMultiPath, isdefined, CommandLine, traits, File, Directory
label_desc: Use image node_id 2 for calling the MatlabCommand obj's underlying member method code with example usage: obj.set_default_matlab_cmd(cls, matlab_cmd) without return types