Re: Color coding a Table entry
- To: mathgroup at smc.vnet.net
- Subject: [mg92657] Re: Color coding a Table entry
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Thu, 9 Oct 2008 06:39:18 -0400 (EDT)
- Organization: Uni Leipzig
- References: <gci1tn$ji$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi,
If[# < 0, Style[#, Red], #] & /@ Table[RandomReal[{-1, 1}], {10}]
Regards
Jens
AES wrote:
> 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?
>