This repository accompanies my YouTube video, Demo: Creating a MATLAB App.
Here, I demonstrate how to create an interactive MATLAB App. The overview is as follows:
- (Optional) Start with a script that does a simple calculation and
plotting.
- You don’t have to do this, but it’s wise to make sure that you have a good workflow before your integrate it with an app.
- Make a new MATLAB App (also known as a graphical user interface, or GUI).
- Add UI elements (axes, sliders, edit fields, etc.)
- Add a function to the app that serves as a calculational engine. This is generally an adaptation of your previously-developed and previously-tested workflow from step 1.
- Add a callback for each interactive element
- Each callback should invoke the calculational engine
- The calculational engine must extract values from the UI
elements using the syntax
app.SomeUIElement.Value
- The calculational engine must extract values from the UI
elements using the syntax
Additionally, if there are other variables you want to pass back and forth to different app elements, you can embed these in the app properties (not discussed in this video). This is like having access to a global variable.
- Related Videos
- Quantum-dot Cellular Automata
- MATLAB Programming
- Other Documents and Tutorials