我正在使用GUIDE創建一個帶有GUI的已編譯MATLAB應用程序。我想在標有'幫助'的應用程序中打開一個合適的文檔。我目前有這個代碼在我的幫助按鈕後面:向已開發的MATLAB應用程序添加幫助
% --- 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命令窗口。我可以阻止這個額外的窗口打開嗎?
或者,雖然這可行,但這必須是經常遇到的要求。有沒有其他人有更好的解決方案?
幫助文件多長。
我使用MATLAB r2014a與64位Windows 7
我已經提出幾個月前[這個答案](http://stackoverflow.com/questions/25662093/displaying-custom-help-documentation-in-matlab/32157072#32157072);也許它可能會幫助你。 –