Attach this code to your matlab shortcut panel to switch between mesh and surf views of the current figure.