how to plot animated square tiles?

5 ビュー (過去 30 日間)
vaggelis papasot
vaggelis papasot 2016 年 2 月 27 日
回答済み: Walter Roberson 2016 年 2 月 27 日
Hi. I want to plot 5 square tiles in the shape of a cross.My goal is to change "online" the color of the tiles according to a number variable , for example if number==1 turn upper tile green,if number==2 turn down tile green... etc.

採用された回答

Walter Roberson
Walter Roberson 2016 年 2 月 27 日
rectangle with FaceColor . Record the handles of the rectangles as you build them. set() the FaceColor property of the appropriate handle according to whatever rules you have. (Remember to drawnow() so the change becomes visible.)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnimation についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by