Doug's MATLAB Video Tutorials

Results for: Topic: GUI or GUIDE

Adding callbacks to lines and axes in MATLAB

Posted by Doug Hull,

Adding callbacks to lines and axes in MATLAB A callback is a function that gets called when you perform certain actions. For instance, you might want something to happen when you click on a line in MATLAB, or when you move the mouse in MATLAB. These events will trigger a function if you define the buttondownfcn... read more >>

Interuptable callbacks and BusyAction in MATLAB 5

Posted by Doug Hull,

Interuptable callbacks and BusyAction in MATLAB If you push a button in a MATLAB UI and this starts a long calculation, what do you want to have happen if the user pushes the button a second time? Interuptable property and BusyAction property of a UICONTROL dictate the behavior. This video shows the different interactions... read more >>

Using one callback function for multiple UI objects in GUIDE 1

Posted by Doug Hull,

Using one callback function for multiple UI objects in GUIDE By default, GUIDE creates one callback function for every object in a UI. Sometimes, you want to have one callback function serve multiple objects. This video shows one way to do this, by manually editing the callback property for multiple objects to point to the same callback function. This trick... read more >>

MATLAB: Manipulating the data in a UItable in GUIDE

Posted by Doug Hull,

MATLAB: Manipulating the data in a UItable in GUIDE If you have a UItable in a UI made in GUIDE, you might want to change that data in a callback. For instance, you might want to change the values or increase the size of the dataset. This short video shows you the process to get the data... read more >>

Adding UICONTROLS to MATLAB without GUIDE for simple interactive figures 5

Posted by Doug Hull,

Adding UICONTROLS to MATLAB without GUIDE for simple interactive figures There are often small tweaks to functionality that you would like for a figure in MATLAB. This video shows how to add a button to a figure that will allow you to toggle the units of a y axes between inches and centimeters. ... read more >>

GUI building in MATLAB 3

Posted by Doug Hull,

GUI building in MATLAB This post is a continuation of the last video where we built a simple GUI in MATLAB. This continues by showing how to run initiation code for a MATLAB GUI and explains what the handles structure is. ... read more >>

Introduction to GUI building with GUIDE in MATLAB 3

Posted by Doug Hull,

Introduction to GUI building with GUIDE in MATLAB As we approach video number three hundred on this blog, I thought it was time to remake the original video that got this all started. I still refer people to it on a weekly basis. This shows you how to make a simple GUI in MATLAB. The... read more >>

Passing data between GUIDE callbacks without globals in MATLAB 8

Posted by Doug Hull,

Passing data between GUIDE callbacks without globals in MATLAB Very often MATLAB users want to share data between different callbacks that they have in their MATLAB GUIs. This video shows a technique that is applicable for when the data being shared is already stored in the state of the GUI. Examples of data that is stored in... read more >>

Adding a debug button to a MATLAB GUI. 2

Posted by Doug Hull,

Adding a debug button to a MATLAB GUI. GUIDE GUI’s in MATLAB are really just a series of function calls triggered by callbacks associated with different uicontrols. Because these are all sub-functions, it can be difficult to get into the sub-function at the right time to see the variables that are in scope. This technique allows... read more >>

How to loop until a button is pushed in MATLAB 7

Posted by Doug Hull,

How to loop until a button is pushed in MATLAB I had a question recently about having a process occur until a button is pressed in a GUI (or while a button is pressed). This video shows how a button can control the output of a stream of random numbers. ... read more >>

These postings are the author's and don't necessarily represent the opinions of MathWorks.