How to display plot and rectangle at the same time?
Show older comments
I want to display some lines and some moving rectangles at the same time in the same frame. I use plot() to draw the lines, and rectangle() to draw the rectangles, but they can't display at the same time. And I have tried 'hold on' , but that didn't work, how can i solve the problem?
Any help would be appreciated!
Thanks
Accepted Answer
More Answers (0)
Categories
Find more on Display and Exploration 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!