rotate view using keyboard - how to change increment?
1 次查看(过去 30 天)
显示 更早的评论
You can rotate an image created by plot3 either using your mouse or using the keyboard's left/right key. For large plotted data sets I prefer the second method, as for every command I'd need to wait a couple of seconds for a response.
The plotted data is rotated by approx. 5 degrees every time I press the left/right key. How do I change this value? I want to rotate it by 30 or 45 degrees every time I press the left/right key.
0 个评论
采纳的回答
Walter Roberson
2011-10-3
Sorry. It is a 2 degree rotation, and it is hard-coded in to the rotaKeyPressFcn function inside toolbox/matlab/graph3d/rotate3d.m
In order to change it, you would either have to edit that file (probably not a good idea) or else set() the figure KeyPressFcn after rotation had been turned on. Changing the KeyPressFcn would likely require turning off the listener on something, bashing in the new value, and then turning listeners back on, as the uimode functions usually install listeners that disable changing the KeypressFcn while the mode is active.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 3-D Scene Control 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!