我编制的m文件点击运行,生成GUI 界面,可以正常运行。但是直接点击fig文件不能运行。
??? Error: File: effiencyGUI.m Line: 3 Column: 1
Function definitions are not permitted in this context.
Error in ==> @(hObject,eventdata)effiencyGUI('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
??? Error while evaluating uicontrol Callback我现在要
我查看了相关的帖子,知道必须从m文件中运行。但是 我要生成exe文件,生成错误如附件所示。同学说是因为fig运行不了。不知道怎么改。
m文件如下:
function varargout = effiencyGUI(varargin)
% EFFIENCYGUI M-file for effiencyGUI.fig
% EFFIENCYGUI, by itself, creates a new EFFIENCYGUI or raises the existing
% singleton*.
%
% H = EFFIENCYGUI returns the handle to a new EFFIENCYGUI or the handle to
% the existing singleton*.
%
% EFFIENCYGUI('CALLBACK',hObject,eventData,handles,...) calls the local<