Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Easy Mapping problem that has me stumped!

  • To: mathgroup at smc.vnet.net
  • Subject: [mg82816] Re: Easy Mapping problem that has me stumped!
  • From: Thomas E Burton <tburton at brahea.com>
  • Date: Wed, 31 Oct 2007 06:21:58 -0500 (EST)

The only issue seems to be that Min flattens lists so cannot be  
applied at level 2. My no-thought solution is therefore to apply it  
by itself at level 3.

Manipulate[Map[Min[1,#]&,Map[#+({x,y,z})&,m,{2}],{3}],{x,0,1},{y,0,1}, 
{z,0,1}]

Seems to work.

BTW, as a long-time user, I gotta say that Manipulate is sweet!

Tom

> I'm trying to iterate through a list and add x to different  
> elements, got that. But I want to keep the values <= 1. ... How  
> should I apply Min?




  • Prev by Date: Re: Setting Negatives to Zero
  • Next by Date: How to construct a vector whose elements are also vectors?
  • Previous by thread: Re: Easy Mapping problem that has me stumped!
  • Next by thread: Re: Easy Mapping problem that has me stumped!