Search Contact information
University of Cambridge Home Department of Engineering
University of Cambridge >  Engineering Department >  computing help
next up previous contents
Next: Program-generated names and commands Up: Examples Previous: Making holes

Adding buttons and menus

One of the properties of graphical objects (called ButtonDownFcn) describes what happens if there's a mouse click on the object, thus permitting complex user-interaction.

% This displays a simple figure and some buttons 
% It needs a command called rotating to work

Put this code into rotating.m

% rotaing.m
[az, el ] = view;
view(az, el)

© Cambridge University Engineering Dept
Information provided by Tim Love