I like this demo entry, because it shows you how you can interactively manipulate graphics object in MATLAB. Visualization is one of MATLAB's strengths, but not many people know that you can create interactive visualizations as well. The key is to make use of some of the callback functionalities, such as WindowButtonMotionFcn for a figure. Take a look at the subfunction "movit" in Gang's code. That's where all the magic happens.
要发表评论，请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。