主要内容

Matlab :: Engine :: startmatlab

开始马铃薯同步

描述

std :: unique_ptr startmatlab(const std :: forment &选项= std :: vector ())

开始matlab.®同步在具有可选MATLAB启动选项的单独进程中。

包括

命名空间:

Matlab ::引擎
包括 matlabengine.hpp.

参数

Const STD :: Vector 和选项

用于启动MATLAB的选项。您可以指定多个启动选项。该引擎支持所有MATL金宝appAB启动选项,除了列出的选项不支金宝app持的启动选项。有关选项列表,请参阅特定于平台的命令Matlab(Windows)matlab(麦斯科斯), 或者Matlab(Linux)

返回值

std :: unique_ptr

指向这一点Matlabengine.目的

例外

Matlab :: Engine :: EngineException

Matlab无法启动。

例子

展开全部

同步启动matlab并返回一个唯一的指针Matlabengine.目的。

std :: unique_ptr  matlabptr = startmatlab();
自动matlabapplication = matlab ::引擎:: startmatlab({u“-desktop”});

开始matlab-nojvm.选项并返回一个唯一的指针Matlabengine.目的。

STD :: Vector  OptionVec;optionVec.push_back(U“-nojvm”);std :: unique_ptr  matlabptr = startmatlab(optionvec);
在R2017B中介绍