2D plane surface
- To: mathgroup at smc.vnet.net
- Subject: [mg44165] 2D plane surface
- From: Young Kim <kim17 at fas.harvard.edu>
- Date: Sat, 25 Oct 2003 06:26:15 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hi, Let's say I have two variables a and b. a and b represent the number of two different objects (such as number of rabbit and sheep). I would like to generate a 2D plane surface (like the attached example) [Contact the author to get the attachment - moderator] that satisfies the following conditions. 1. 2D plane surface is divided into small pixels. 2. Each pixel has either red or green. 3. The choice of pixel color is random but the ratio of red to green pixels is proportional to a/b And is it also possible to generate the time course of such representations from a[t], b[t] where a[t], b[t] are the solutions of the following differential equation NDSolve[ {a'[t] == a[t] ((1 - a[t]) - b[t](0.1 c[t] + d[t])), b'[t] == b[t]((1 - b [t]) - a[t] (c[t] + 0.1d[t])), c'[t] == c[t] ((1 - c[t]) - d[t] (0.1 a[t] + b[t])), d'[t] == d[t] ((1 - d[t]) - c[t] (a[t] + 0.1 b[t])} // omitted the remaining parts of the equation. Thanks in advance for any input. Young