Why drawnow ; is given after imshow in matlab?
5 次查看(过去 30 天)
显示 更早的评论
Why drawnow ; is given after imshow in matlab?
0 个评论
回答(1 个)
Honglei Chen
2015-8-14
This is used to flush the graphic queue so you can see the change on screen. This is often used in animation so you can see the graph change during a loop. Otherwise, the program may accumulate the queue and flush it at the end of loop and you don't see the animation effect.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!