Stuart’s MATLAB Videos

Watch and Learn

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 of the line or the windowbuttonmotionfcn of the figure. This short video shows you how to use a function handle to define these callbacks.
|
  • print

Comments

To leave a comment, please click here to sign in to your MathWorks Account or create a new one.