Prev: Compare 2 Images
Next: XOR
From: Arvindh on 20 Apr 2010 23:30 Hi, I have a 100x100 matrix where the entries are either >4 (no greater than 6) or less than 4. I want to plot this matrix using imagesc and make it so that the pixels whose corresponding entries <4 are colored blue, and the pixels whose corresponding entries >=4 are colored red. As background info, I'm trying to simulate an abelian sandpile and want to show how criticality builds.
From: Walter Roberson on 21 Apr 2010 00:05 Arvindh wrote: > Hi, I have a 100x100 matrix where the entries are either >4 (no greater > than 6) or less than 4. > > I want to plot this matrix using imagesc and make it so that the pixels > whose corresponding entries <4 are colored blue, and the pixels whose > corresponding entries >=4 are colored red. > > As background info, I'm trying to simulate an abelian sandpile and want > to show how criticality builds. colormap([0 0 1;1 0 0]); imagesc(TheImage>=4);
|
Pages: 1 Prev: Compare 2 Images Next: XOR |