From: Nathan on 6 Jan 2010 20:48 I regularly use imagesc to visualize a matrix. However, I was wondering if there is any utility that would allow one to split each cell into upper and lower triangles so that one could overlay two matricies (the first plotted in the upper triangle, the second plotted in the lower triangle.
From: Nathan on 6 Jan 2010 20:55 Nathan <ngreco32(a)gmail.com> wrote in message <6600ca5c-007e-4b3f-a935-81df641a3cd1(a)a15g2000yqm.googlegroups.com>... > On Jan 6, 4:51 pm, "Nathan " <natelewis*remove.th...(a)yahoo.com> wrote: > > I regularly use imagesc to visualize a matrix. However, I was wondering if there is any utility that would allow one to split each cell into upper and lower triangles so that one could overlay two matricies (the first plotted in the upper triangle, the second plotted in the lower triangle. > > Do you mean something like this? > A = ones(10) > B = ones(10)*2 > Au = triu(A) > Bl = tril(B) > imagesc(Au+Bl-Au.*Bl,[0 2]) > > Or did I not understand you correctly? > > -Nathan no... for two matricies, I want to see each location (e.g., (1,1)) in the same square, with one in the upper triangle of the square, and the other in the lower triangle , similar to seen here, but with color instead of numbers http://genome.cshlp.org/content/16/5/627/F4.large.jpg
From: Nathan on 6 Jan 2010 20:57 Nathan <ngreco32(a)gmail.com> wrote in message <6600ca5c-007e-4b3f-a935-81df641a3cd1(a)a15g2000yqm.googlegroups.com>... > On Jan 6, 4:51 pm, "Nathan " <natelewis*remove.th...(a)yahoo.com> wrote: > > I regularly use imagesc to visualize a matrix. However, I was wondering if there is any utility that would allow one to split each cell into upper and lower triangles so that one could overlay two matricies (the first plotted in the upper triangle, the second plotted in the lower triangle. > > Do you mean something like this? > A = ones(10) > B = ones(10)*2 > Au = triu(A) > Bl = tril(B) > imagesc(Au+Bl-Au.*Bl,[0 2]) > > Or did I not understand you correctly? > > -Nathan no... for two matricies, I want to see each location (e.g., (1,1)) in the same square, with one in the upper triangle of the square, and the other in the lower triangle , similar to seen here, but with color instead of numbers http://genome.cshlp.org/content/16/5/627/F4.large.jpg
From: Nathan on 6 Jan 2010 20:58 Nathan <ngreco32(a)gmail.com> wrote in message <6600ca5c-007e-4b3f-a935-81df641a3cd1(a)a15g2000yqm.googlegroups.com>... > On Jan 6, 4:51 pm, "Nathan " <natelewis*remove.th...(a)yahoo.com> wrote: > > I regularly use imagesc to visualize a matrix. However, I was wondering if there is any utility that would allow one to split each cell into upper and lower triangles so that one could overlay two matricies (the first plotted in the upper triangle, the second plotted in the lower triangle. > > Do you mean something like this? > A = ones(10) > B = ones(10)*2 > Au = triu(A) > Bl = tril(B) > imagesc(Au+Bl-Au.*Bl,[0 2]) > > Or did I not understand you correctly? > > -Nathan no... more like this, but with color genome.cshlp.org/content/16/5/627/F4.large.jpg
From: nanren888 on 7 Jan 2010 00:48 "Nathan " <natelewis*remove.this*@yahoo.com> wrote in message <hi3egk$kbk$1(a)fred.mathworks.com>... > I regularly use imagesc to visualize a matrix. However, I was wondering if there is any utility that would allow one to split each cell into upper and lower triangles so that one could overlay two matricies (the first plotted in the upper triangle, the second plotted in the lower triangle. If you can put up with rectangles, instead you could just interlace the rows :) With imagesc, you'll have to watch the scaling sort-of-matches. patches? I've used pcolor(x,y,c) for sonar plots, where every sample represents a section of an annulus. Not usre of the easiest way to get two interspersed. Might react ok to masks of nans?
|
Next
|
Last
Pages: 1 2 Prev: Graphical Comparison - How to approach? Next: handle of "imagesc" to make invisible |