How to view Figure source code?

16 views (last 30 days)
Yonglei GUI
Yonglei GUI on 7 Sep 2019
Answered: Guillaume on 7 Sep 2019
I want to make a GUI interface similar to Figure(Matlab standard figure interface), some of which (such as file> Open) will be modified to my own, and the remaining menus still want to keep the original functions. So, now I can't track the working process of Figure (such as Cut, Copy, paste and other general functions in Figure, which functions are specifically called When Triggered ?). So I want to know, how to view the Figure source code?

Answers (1)

Guillaume
Guillaume on 7 Sep 2019
There is no source code for a figure that you can view (the figure creation code was probably originally written in C, C++, Java or similar language, and other than working for Mathworks you won't have access to it).
There is a tool that can generate m code to recreate a particular figure, but I don't think that's what you're after.
It sounds like you want to create a GUI with your own figure menu. If so, look at the documentation here and in particular, Create menu for GUIDE Apps if you intend to use GUIDE to create your GUI or Create menu for programmatic Apps if you intend to use App Designer. If you're familiar with neither, I strongly recommend you use App Designer as you'll have less of a learning curve.

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!