|
楼主 |
发表于 2009-5-8 16:47
|
显示全部楼层
现在尝试的方法
我的初始化:
function bysj03_OpeningFcn(hObject, eventdata, handles, varargin)
global row
global col
%global qqqq
global data
打开数据回调函数:
function open_data_Callback(hObject, eventdata, handles)
[FileName PathName] = uigetfile(('*.mat'),'请选择原始数据文件');
%data = load(PathName)
load([PathName,FileName]);
data = qqqq;
[row col] = size(data);
set(handles.text3,'string',row);
set(handles.text4,'string',col);
“转换”回调函数:
function transform_Callback(hObject, eventdata, handles)
data = data'
[row col] = size(data)
set(handles.text3,'string',row);
set(handles.text4,'string',col);
按了“转换”后错误的提示是:
??? At compilation, "data" was determined to be a variable and this
variable is uninitialized. "data" is also a function name and previous versions of MATLAB would have called the function.
However, MATLAB 7 forbids the use of the same name in the same
context as both a function and a variable.
Error in ==> bysj03>transform_Callback at 162
data = data'
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> bysj03 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==> guidemfile>@(hObject,eventdata)bysj03('transform_Callback',hObject,eventdata,guidata(hObject))
??? Error while evaluating uicontrol Callback |
|