这就是整个程序(还有一个试验性的窗口,用来调用该窗口)。不知道此中有什么毛病。
function varargout = userData(varargin)
% USERDATA M-file for userData.fig
% USERDATA, by itself, creates a new USERDATA or raises the existing
% singleton*.
%
% H = USERDATA returns the handle to a new USERDATA or the handle to
% the existing singleton*.
%
% USERDATA('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in USERDATA.M with the given input arguments.
%
% USERDATA('Property','Value',...) creates a new USERDATA or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before userData_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to userData_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help userData
% Last Modified by GUIDE v2.5 04-Mar-2009 10:17:26
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @userData_OpeningFcn, ...
'gui_OutputFcn', @userData_OutputFcn, ...