how to fix my guide m file
Show older comments
hello, i am creating an interface using guide but when i write the axes program it keeps indicating this error "Error in @(hObject,eventdata)interfac('pushbutton_Callback',hObject,eventdata,guidata(hObject))""....can someone explain it or how can i fix it Thanks
7 Comments
Image Analyst
on 28 May 2016
Not without the code and the FULL error message (ALL the red text not just some of it). Please attach the m-file and fig file with the paper clip icon.
rahmoune wiss
on 28 May 2016
Edited: Walter Roberson
on 28 May 2016
Walter Roberson
on 28 May 2016
Shrug. You did not include the complete error message, you did not include the .fig file, you did not include instructions on how to recreate the error even if we had those.
Perhaps you do not have the Symbolic Toolbox installed. Perhaps you do not have retina.jpg in your current directory. Perhaps your object named "panel" is not a uibuttongroup and so does not have a SelectedObject property.
Image Analyst
on 28 May 2016
Evidently 'retina.jpg' is also required. Please upload everything we need so we can help you. Use the paperclip icon, unlike what you just did last time.
rahmoune wiss
on 28 May 2016
Image Analyst
on 28 May 2016
Again, we're going to need the retina image won't we?
rahmoune wiss
on 28 May 2016
Answers (2)
Open your fig in GUIDE, double click on Axes1, find the 'CreateFcn' property, select all the text in that field and delete it. Axes don't come with a CreateFcn by default so I don't know how you ended up with one, presumably by accident. I usually delete most of my component's CreateFcn's because they just add clutter to my .fig, but that is just my personal preference and the fact I don't write multi-platform code.
Image Analyst
on 29 May 2016
0 votes
Do what Adam said but also do it for the panel. After you delete it hit return and save the .fig file. I did it and am attaching the two files. It now launches without error.
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!