How to plot a animation plot on a 2D grid?

I have a 21*4 matrix data which only contains 0 and 1. I wanna build a 2*2 2d grid that can change color following 0 and 1.( 0 is white and 1 is black) Each column in that 21*4 matrix repersents the data for 1 block in the grid. How could I plot a animated plot to work like a neon? Thank you.

4 commentaires

Geoff Hayes
Geoff Hayes le 14 Fév 2019
Zhen - how is the data in the first column of your matrix used in the first block of your grid? Or do you read each row of the 21x4 matrix and populate the colours in the 2x2 grid, then pause, and then repeat with the second row, etc.? Please clarify.
ZHEN XU
ZHEN XU le 14 Fév 2019
The first column will be like 21 signals input into the the first block. Each data will make the block either white or black. Hope you can understand it.Thanks
Geoff Hayes
Geoff Hayes le 14 Fév 2019
so you apply the 21 "signals" from the first column into the first block of the 2x2, then apply the 21 signals from the second column to the second block of the 2x2, etc. Is this correct? Do you pause between each signal "update"?
ZHEN XU
ZHEN XU le 14 Fév 2019
yes, each signal can pause maybe 0.1sec.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Animation dans Centre d'aide et File Exchange

Tags

Question posée :

le 14 Fév 2019

Commenté :

le 14 Fév 2019

Community Treasure Hunt

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

Start Hunting!

Translated by