Re: Easy Mapping problem that has me stumped!
- To: mathgroup at smc.vnet.net
- Subject: [mg82778] Re: Easy Mapping problem that has me stumped!
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Wed, 31 Oct 2007 06:02:21 -0500 (EST)
- Organization: Uni Leipzig
- References: <fg6qur$dqp$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi, because you Manipulate[] restrict x,y,z <=1 you can't enter values x,y,z>1 or do you mean Manipulate[ Map[Min[#, 1] &, Map[# + ({x, y, z}) &, m, {2}], {3}], {x, 0, 1}, {y, 0, 1}, {z, 0, 1}] ?? Regards Jens RicoS wrote: > I'm trying to iterate through a list and add x to different elements, got that. But I want to keep the values <= 1. > I have something like this: > > m = {{{0, 1, 1}, {1, 0, 1}, {1, 1, 0}}, {{1, 0, 0}, {0,1,0}, {0,0,1}}} > > Manipulate[Map[# + ({x, y, z}) &, m, {2}], {x, 0, 1}, {y, 0, 1}, {z, 0, 1}] > > That works great. But I want to keep x,y & z <=1. (It'a a threshold thing) > > How should I apply Min? I've tried everything I can think of, but I'm a total noob. > Thanks for your help!! >