【发布时间】:2015-12-17 16:30:42
【问题描述】:
我正在使用 GUIDE 创建一个已编译的 MATLAB 应用程序,该应用程序是使用 GUIDE 创建的。我想在我的应用程序中添加一个标有“帮助”的按钮来打开合适的文档。我目前的帮助按钮后面有这段代码:
% --- Executes on button press in helpButton.
function helpButton_Callback(hObject, eventdata, handles)
if exist('./my_prog_help.html/my_prog_help.html', 'file')
!start trip_vierer_help.html\trip_viewer_help.html &
elseif exist('./my_prog_help.txt', 'file')
!start trip_viewer_help.txt &
else
warndlg('Help file not found.','Help Not Found','modal')
uiwait();
end
这可行,但它会打开并打开一个 Windows 命令窗口。我可以停止这个额外的窗口打开吗?
或者,虽然这可行,但这必须是经常遇到的要求。还有其他人有更好的解决方案吗?
帮助文档有很多页。
我在 64 位 Windows 7 上使用 MATLAB r2014a。
【问题讨论】:
-
几个月前我已经提议this answer;也许它可以帮助你。
标签: matlab matlab-deployment matlab-compiler