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