def invoke_matlab(command): matlab_bin_path = resolve_matlab_bin_path() invoke_process([ '{}'.format(matlab_bin_path), '-nosplash', '-nodesktop', '-nojvm', '-r', '{}'.format(command) ])
def invoke_matlab(command): matlab_bin_path = resolve_matlab_bin_path() invoke_process(["{}".format(matlab_bin_path), "-nosplash", "-nodesktop", "-nojvm", "-r", "{}".format(command)])
def _which_matlab(): try: return invoke_process(['which', 'matlab']) except CalledProcessError: # Swallow non-zero returncode of which when not found pass
def _which_matlab(): try: return invoke_process(["which", "matlab"]) except CalledProcessError: # Swallow non-zero returncode of which when not found pass