How to acces to the code of a button
Show older comments
Hello, I have an inetrface matlab already functinnelle and I have no problem. Today when I want to change the code of a button or axis I can not. Can you tell me what the problem is. Thanks
3 Comments
brahmi ibtissem
on 13 Mar 2018
Edited: Walter Roberson
on 14 Mar 2018
Walter Roberson
on 14 Mar 2018
Somehow you are deleting the figure that the button is attached to.
Image Analyst
on 14 Mar 2018
Search your code for the words "clear" and "delete" and make sure it makes sense, and is needed, to call them when you do. Changes are, you did "clear all" in the function which blew away the essential "handles" structure variable.
Answers (3)
Steven Lord
on 6 Mar 2018
0 votes
How did you create the interface: programmatically, using GUIDE, or using App Designer? Check the appropriate section on this documentation page for instruction on how to code your app's behavior. If you have your app open in GUIDE or App Designer, you should be able to edit the callbacks the same way you would add code to a new callback.
If you have opened your UI's code in GUIDE or App Designer and cannot edit the code in those environments, please say a little more about what "I can not" means: do you receive an error (and if so what's the full text, everything in red of that error?), do you receive a warning (ditto, except everything in orange), etc.?
brahmi ibtissem
on 14 Mar 2018
0 votes
3 Comments
Walter Roberson
on 14 Mar 2018
We will need your code and your .fig file.
brahmi ibtissem
on 20 Mar 2018
Edited: Stephen23
on 20 Mar 2018
Walter Roberson
on 20 Mar 2018
What is the code for drawMap and for drawColormap ?
brahmi ibtissem
on 20 Mar 2018
0 votes
Categories
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!