Demo: Creating a MATLAB App

Поділитися
Вставка
  • Опубліковано 16 тра 2024
  • This is an introduction to making MATLAB applications (apps). These are interactive apps that let you get instantaneous feedback when studying complex systems.
    The overview is as follows:
    1. (Optional) Start with a script that does a simple calculation and
    plotting.
    a. 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.
    2. Make a new MATLAB App (also known as a graphical user interface,
    or GUI).
    3. Add UI elements (axes, sliders, edit fields, etc.)
    4. 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.
    5. Add a callback for each interactive element
    6. Each callback should invoke the calculational engine
    a. The calculational engine must extract values from the UI
    elements using the syntax app.SomeUIElement.Value
    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.
    Get the code here: github.com/enriquepacis/MATLA...
    Related videos:
    Overview of the QCA Concept - • QCA Part 1 - Overview ...
    Introduction to MATLAB and LiveScripting - • Introduction to MATLAB...
    Creating Publication-quality Plots in MATLAB - • Creating Publication-q...
    10 - Basic MATLAB Functions - • 10 - Basic MATLAB Func...
  • Фільми й анімація

КОМЕНТАРІ •