主要内容

parallel.exportProfile

导出一个或多个概要文件到文件

语法

parallel.exportProfile (profileName,文件名)
parallel.exportProfile ({profileName1, profileName2,…,profileNameN},文件名)

描述

parallel.exportProfile (profileName,文件名)导出具有名称的概要文件profileName到指定的文件名。扩展.mlsettings附加到文件名后,除非已经存在。

parallel.exportProfile ({profileName1, profileName2,…,profileNameN},文件名)将具有指定名称的概要文件导出到文件名

要导入配置文件,使用parallel.importProfile或集群配置文件管理器。

例子

导出命名为MyProfile到文件MyExportedProfile.mlsettings

parallel.exportProfile (“MyProfile”“MyExportedProfile”

将默认配置文件导出到文件中MyDefaultProfile.mlsettings

def_profile = parallel.defaultProfile();parallel.exportProfile (def_profile“MyDefaultProfile”

导出除。以外的所有配置文件“过程”到文件AllProfiles.mlsettings

allProfiles = parallel.listProfiles();从所有配置文件中删除“进程”notProcesses = ~strcmp(allProfiles,“过程”);profilesToExport = allProfiles(notProcesses);如果~ isempty (profilesToExport) parallel.exportProfile (profilesToExport,“AllProfiles”);结束

版本历史

在R2012a中引入