Getting a Error in handles
조회 수: 8 (최근 30일)
이전 댓글 표시
I keep getting a handles error in this code why can anyone help i am new to matlab gui
function Run_Callback(hObject, eventdata, handles)
global runningAverage;
global datas;
set(handles.text4,'Visible','on');
set(handles.text5,'Visible','on');
set(handles.text6,'Visible','on');
set(handles.Median,'String',num2str(Median(data)));
set(handles.Mean,'String',Mean(data));
set(handles.Mode,'String',Mode(data));
set(handles.Median,'Visible','on');
set(handles.Mean,'Visible','on');
set(handles.Mode,'Visible','on');
댓글 수: 0
답변 (1개)
Walter Roberson
2012년 2월 21일
You have several statements that operate upon "data", but you have no obvious definition for "data" in scope. You do have a definition for "datas" in your global statement, but "data" and "datas" are not the same variable.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!