Why drawnow ; is given after imshow in matlab?
1 view (last 30 days)
Show older comments
Why drawnow ; is given after imshow in matlab?
0 Comments
Answers (1)
Honglei Chen
on 14 Aug 2015
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.
See Also
Categories
Find more on Animation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!