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"]
code: def _format_arg(self, name, trait_spec, value):
      if name in ["script"]:
          argstr = trait_spec.argstr
          if self.inputs.uses_mcr:
              argstr = "%s"
          return self._gen_matlab_command(argstr, value)
      return super()._format_arg(name, trait_spec, value)
  
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 6 for calling the MatlabCommand obj's underlying member method code with example usage: obj._format_arg(name, trait_spec, value) and returns: super, self