1、在编辑器能生成report,在打包后的APP却无法生成,解决办法:
在负责输出文档的.m文件开头加入
makeDOMCompilable();
2、输出指定路径
rptoutpath = 'D:\Matlab'
report_name = 'template'
% 形成输出路径和文件名称格式
optpath = strcat(rptoutpath,'\', report_name,'.docx');
% 在指定路径输出文档
rpt.OutputPath = (optpath);
1、在编辑器能生成report,在打包后的APP却无法生成,解决办法:
在负责输出文档的.m文件开头加入
makeDOMCompilable();
2、输出指定路径
rptoutpath = 'D:\Matlab'
report_name = 'template'
% 形成输出路径和文件名称格式
optpath = strcat(rptoutpath,'\', report_name,'.docx');
% 在指定路径输出文档
rpt.OutputPath = (optpath);