MATLAB: Focus on axes with rotate3d MATLABmatlab gui Hello How can I set the rotate3d option to a specific axes ? My Problem is that when this command line is reached a new figure opens by itself how can solve this problem ? Thanks Best Answer You can enable rotation only in the specific axes by executing the following line:rotate3d(axes_handle)For example, if you had two axes as subplots in one figure, you could enable rotation in only the second one with:figure;ax1 = subplot(1,2,1)plot(...)ax2 = subplot(1,2,2)plot(...)rotate3d(ax2);See the documentation for rotate3d for details.As for your question about a new figure opening by itself, can you please show us your code where this happens? Related SolutionsMATLAB: Rotate3d in GUI Yes it is possible.Just make a uicontext menu like in the example here: http://www.mathworks.se/help/techdoc/ref/uicontextmenu.htmlAnd then set it as the 'UIcontextmenu' property value in your rotate3d handle. MATLAB: Linking two axes with rotate3D h(1) = figure(1); v(1) = plot3(rand(10,1),rand(10,1),rand(10,1)); h(2) = figure(3); v(2) = plot3(rand(10,1),rand(10,1),rand(10,1)); aH = cell2mat(ancestor(v,'axes')); linkprop(aH,'CameraPosition');The two plots should rotate together now. Related QuestionError with rotate3d push buttonRotate3d and ButtonDownFCN simultaneously active for two separate axesDoes the documentation for ROTATE3D describe the ‘RotateStyle’ property as ‘RotateMotion’Notepad focus window
Best Answer