Wait For Key Press?
6 ビュー (過去 30 日間)
古いコメントを表示
Hi Guys, I'm having a problem where I want to view consecutive 3d scatter plots. I plot the first one, then, when I'm ready I press a mouse button and it advances to the next plot using:
waitforbuttonpress
to advance the code . This is working fine. But in addition to this I also want to rotate the image, however using the mouse to rotate the image makes the program advance to the next plot! What I really would like is a
waitforKEYpress,
so I can use the mouse on the plot and when I'm done press a key to advance. So my question is:
Are there any other
"waitfor"'s
which will let me use the mouse on plots freely?
Many Thanks in Advance,
Tim.
0 件のコメント
回答 (2 件)
Walter Roberson
2012 年 12 月 11 日
Use a figure WindowKeypressFcn callback.
2 件のコメント
Walter Roberson
2012 年 12 月 12 日
A scatter plot has to be in an axes, which has to be part of a figure. Attach the callback to that figure.
As far as MATLAB is concerned, "GUI" and "figure" are the same thing.
Muruganandham Subramanian
2012 年 12 月 12 日
編集済み: Muruganandham Subramanian
2012 年 12 月 12 日
Otherwise, you can use keyboard, dbquit command also..
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Scatter Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!