Doug's MATLAB Video Tutorials

Adding callbacks to lines and axes in MATLAB

Posted by Doug Hull,

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.

Add A Comment

What is 2 + 9?

Preview: hide

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