Code covered by the BSD License  

Highlights from
view3d.m

4.92857

4.9 | 14 ratings Rate this file 17 Downloads (last 30 days) File Size: 3.44 KB File ID: #334

view3d.m

by

 

view3d Interactively rotate, zoom and pan the view of a 3-D plot

| Watch this File

File Information
Description

view3d Interactively rotate, zoom and pan the view of a 3-D plot
 
VIEW3D ROT turns on mouse-based 3-D rotation
VIEW3D ZOOM turns on mouse-based 3-D zoom and pan
VIEW3D OFF turns it off
 
VIEW3D(FIG,...) works on the figure FIG
 
Double click to restore the original view
 
- hit 'z' key over the figure to switch from ROT to ZOOM
- hit 'r' key over the figure to switch from ZOOM to ROT
 
in ROT mode:
- press and hold left mouse button to rotate about screen xy axis
- press and hold middle mouse button to rotate about screen z axis

in ZOOM mode:
- press and hold left mouse button to zoom in and out
- press and hold middle mouse button to move the plot
 
Inspired by rotate3d by The MathWorks, Inc.
 
Tested under MATLAB 5.2

Acknowledgements

This file inspired Figure Control Widget, Interactivemouse, and Orthogonalslicer.

MATLAB release MATLAB 5.2 (R10)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (14)
15 May 2014 simba forrest  
07 Aug 2008 Matt Arth

Exactly what is required for viewing 3D plots.

29 Feb 2008 ming zhang

very good!

03 Jan 2006 Tapu Costel  
01 Feb 2005 Daniel Bernasconi

Very neat. Replace 'extend' with 'alt' in both places if you've only got a two-button mouse. Pan seems to go a bit unstable if you drag right to the edge of the screen.

29 Oct 2004 KW Lee

Exactly what I was looking for. Great!!

18 Oct 2004 Nima Moshtagh

nice work!!

13 Oct 2004 Guglielmo Rubinacci

very good

12 Aug 2003 Mujahid Sultan

Simply Superb

06 Jul 2003 An Wei

very good!
My GUI can compile and become a executive program with view3d!

11 Jun 2003 S Schuberth

very good, but before usage try this:

set(gcf,'doublebuffer','on')

this will stop the flickering of the plot.

16 Mar 2003 Lina Chang

It's very nice to be able to manipulate plot views via the mouse.

06 Dec 2002 Richard Steinberg

Provides flexible mouse control of 3-D view- but a dry description of functionality doesn't do it justice. VIEW3D is very nice, very pretty.

26 Nov 2002 Mark Wilbanks  

Contact us