Discussion:
rotate3d under MATLAB 7
(too old to reply)
Mark
2004-08-04 09:39:09 UTC
Permalink
hi all,
I draw a 3d plot in a GUI and use 'rotate3d on', and under MATLAB 7 a
Context Menu with some rotation options will be added in the current
axes automatically, and the default rotation style is 'Continuous
Rotate', but I want setting the style to 'Plot Box Rotate' through my
code (not through mouse click).
How can I do this? Which property should I change?
By the way, the 'Callback' of this ContextMenu is very strange, not a
function string, but a cell array, why?
Titus Edelhofer
2004-08-05 09:13:08 UTC
Permalink
Hi Mark,
I'm not sure why not stated in the help, but having a look at the code
made my find out:

rotate3d(gca,'on','-view')

does, what you want...

Titus
Post by Mark
hi all,
I draw a 3d plot in a GUI and use 'rotate3d on', and under MATLAB 7 a
Context Menu with some rotation options will be added in the current
axes automatically, and the default rotation style is 'Continuous
Rotate', but I want setting the style to 'Plot Box Rotate' through my
code (not through mouse click).
How can I do this? Which property should I change?
By the way, the 'Callback' of this ContextMenu is very strange, not a
function string, but a cell array, why?
Loading...