Message Boards Message Boards

0
|
2334 Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Animate a bunch of matrices generated in a for loop?

Posted 7 years ago

Hello,

I'm trying to animate a heat map, i.e. use ListAnimate where each expression in the ListAnimate input would be each MatrixPlot[..]. code attempt

The picture i've attached shows my attempt. "timemat" is a 24x41 matrix of raw data (a bunch of letters a through l). "zeros" is a 24x41 matrix of zeros to match this. "HEAT" is a 24x12 matrix of zeroes, and the loops will count the amount of each letter and fill in HEAT through each iteration.

My goal is to make an animation that shows the MatrixPlot at each iteration i. I put comments where I think this should go, but when I try it there is either no output or an error. I've also attached the file.

Thank you in advance!

Attachments:
POSTED BY: James Curley
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract