Re: Color coding a Table entry
- To: mathgroup at smc.vnet.net
- Subject: [mg92621] Re: Color coding a Table entry
- From: "David Park" <djmpark at comcast.net>
- Date: Thu, 9 Oct 2008 06:32:34 -0400 (EDT)
- References: <gci1tn$ji$1@smc.vnet.net>
Table[Style[i, If[i < 0, Red, Black]], {i, -2, 2}] -- David Park djmpark at comcast.net http://home.comcast.net/~djmpark/ "AES" <siegman at stanford.edu> wrote in message news:gci1tn$ji$1 at smc.vnet.net... > I'm Printing (to the screen) a Table like, let's say, > > Table[{f1, f2, f3}, (x, xmin, xmax}] > > and anytime the value of f2 goes negative I want that value printed in > Red. > > What's a simple, compact way to code this? >