Undefined function or variable
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Philosophaie
il 4 Feb 2014
Risposto: Sean de Wolski
il 4 Feb 2014
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'.
0 Commenti
Risposta accettata
Sean de Wolski
il 4 Feb 2014
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Startup and Shutdown in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!