nevsayno 发表于 2009-5-10 08:13

关于‘Unbalanced or misused parentheses or brackets’

请大侠帮忙,谢谢
-------------------------------------------------------------------------------------------------------------------------
错误提示为:
??? Error: File: D:\MATLAB7\toolbox\matlab\uitools\gui_mainfcn.m Line: 75 Column: 24
Unbalanced or misused parentheses or brackets.
Error in ==> mtc1 at 16
    gui_mainfcn(gui_State, varargin{:});
-----------------------------------------------------------------------------------------------------------------------
m代码:

function varargout = mtc1(varargin)
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',gui_Singleton, ...
                   'gui_OpeningFcn', @mtc1_OpeningFcn, ...
                   'gui_OutputFcn',@mtc1_OutputFcn, ...
                   'gui_LayoutFcn',[] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
    = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
-----------------------------------------------------------------------------------

说是对象不匹配,可是我实在看不出来了,请指点,谢谢!

friendchj 发表于 2009-5-10 10:15

去函数gui_mainfcn(gui_State, varargin{:});里面看看
页: [1]
查看完整版本: 关于‘Unbalanced or misused parentheses or brackets’