资源简介
matlab运行过程中出现的将gui_mainfcn.m作为函数错误的解决,下载该附件并且覆盖原来的就可以了。
代码片段和文件信息
function varargout = gui_mainfcn(gui_State varargin)
% GUI_MAINFCN Support function for creation and callback dispatch of GUIDE GUIs.
% GUI_MAINFCN is called from inside MATLAB code files generated by GUIDE to handle
% GUI creation layout and callback dispatch.
%
% See also: GUIDE.
% GUI_MAINFCN provides these command line APIs for dealing with GUIs
%
% UNtitleD by itself creates a new UNtitleD or raises the existing
% singleton*.
%
% H = UNtitleD returns the handle to a new UNtitleD or the handle to
% the existing singleton*.
%
% UNtitleD(‘CALLBACK‘hobjecteventDatahandles...) calls the local
% function named CALLBACK in UNtitleD.M with the given input arguments.
%
% UNtitleD(‘Property‘‘Value‘...) creates a new UNtitleD or raises the
% existing singleton*. Starting from the left property value pairs
% are
% applied to the GUI before untitled_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to untitled_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE‘s Tools menu. Choose “GUI allows only one
% instance to run (singleton)“.
% Copyright 1984-2015 The MathWorks Inc.
gui_StateFields = {‘gui_Name‘
‘gui_Singleton‘
‘gui_OpeningFcn‘
‘gui_OutputFcn‘
‘gui_LayoutFcn‘
‘gui_Callback‘};
gui_Mfile = ‘‘;
for i=1:length(gui_StateFields)
if ~isfield(gui_State gui_StateFields{i})
error(message(‘MATLAB:guide:StateFieldNotFound‘ gui_StateFields{ i } gui_Mfile));
elseif isequal(gui_StateFields{i} ‘gui_Name‘)
gui_Mfile = [gui_State.(gui_StateFields{i}) ‘.m‘];
end
end
numargin = length(varargin);
if numargin == 0
% UNtitleD
% create the GUI only if we are not in the process of loading it
% already
gui_Create = true;
elseif local_isInvokeActiveXCallback(gui_State varargin{:})
% UNtitleD(ACTIVEX...)
vin{1} = gui_State.gui_Name;
vin{2} = [get(varargin{1}.Peer ‘Tag‘) ‘_‘ varargin{end}];
vin{3} = varargin{1};
vin{4} = varargin{end-1};
vin{5} = guidata(varargin{1}.Peer);
feval(vin{:});
return;
elseif local_isInvokeHGCallback(gui_State varargin{:})
% UNtitleD(‘CALLBACK‘hobjecteventDatahandles...)
gui_Create = false;
else
% UNtitleD(...)
% create the GUI and hand varargin to the openingfcn
gui_Create = true;
end
if ~gui_Create
% In design time we need to mark all components possibly created in
% the coming callback evaluation as non-serializable. This way they
% will not be brought into GUIDE and not be saved in the figure file
% when running/saving the GUI from GUIDE.
designEval = false;
if (numargin>1 && ishghandle(varargin{2}))
fig = varargin{2};
while ~isempty(fig) && ~ishghandle(fig‘figure‘)
fig = get(fig‘parent‘);
end
designEval = isappdata(0‘CreatingGUIDEFigure‘) || (is
- 上一篇:MATLAB图局部放大函数
- 下一篇:BLDCM simuli
nk 模糊控制仿真
相关资源
- MATLAB图局部放大函数
- MATLAB 对离散点进行圆拟合
- matlab ks挑选样本 数据划分
- 锁定放大器仿真实验报告
- lasso回归MATLAB程序
- Matlab生成一维光栅
- MATLAB基于神经网络的英文字母识别
- MATLAB俩自由度小车仿真
- 面阵中二维角度估计 Unitary -ESPRIT算法
- 基尼系数matlab代码
- matlab仿真设计-多服务台排队系统建模
- Matlabimu 时域积分与频域积分,加速度
- 粒子群系统辨识
- 基于最小二乘法的定位算法——matl
- 路径规划A*算法matlab
- 简易相控阵天线波束扫描MATLAB
- 模拟退火算法的matlab工具箱satools
- 34行MATLAB实现k-均值聚类k-means和不同颜
- 逐日数据转逐月
- MATLAB熵权法求权重,只需要换数据矩
- music算法通过麦克风阵列估计声源方向
- 粒子群单目标PID整定MATLAB实现
- matlab批量读入图片并存储为矩阵txt形
- 模拟退火算法
- matlab大地坐标转换程序
- matlab的K-mean图像分类程序
- matlab边缘监测程序
- GSO算法matlab代码
- 支持向量机手写体识别matlab
- mackey glass
评论
共有 条评论