필터 지우기
필터 지우기

Undefined function or variable

조회 수: 1 (최근 30일)
Philosophaie
Philosophaie 2014년 2월 4일
답변: Sean de Wolski 2014년 2월 4일
Where am I going wrong with this function?
function Analysis(src,evnt)
f = figure('Visible','off','Position',[500 500 500 500]);
uicontrol('Style','pushbutton','String','Button','Position',[10,230,450,50],'Callback',{@Evaluate},'BackgroundColor','green');
axes('Units','pixels','position',[50 50 550 550]);
% Assign the GUI a name to appear in the window title.
set(f,'Name','Projectile Motion');
% Move the GUI to the center of the screen.
movegui(f,'center');
% Make the GUI visible.
set(f,'Visible','on');
function Evaluate(hObject, eventdata, handles)
Error code: ??? Undefined function or variable 'Analysis'.

채택된 답변

Sean de Wolski
Sean de Wolski 2014년 2월 4일
What's the file saved as?
It should be saved as Analysis.m and should be on the MATLAB path or in the current directory.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by