Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

Re: ask for help on list operation

  • To: mathgroup at
  • Subject: [mg44190] Re: ask for help on list operation
  • From: "wouter meeussen" <wouter.meeussen at>
  • Date: Sat, 25 Oct 2003 06:26:58 -0400 (EDT)
  • References: <bmqqge$rkc$>
  • Sender: owner-wri-mathgroup at


look at MapIndexed :

MapIndexed[(#1 - minlist[[Last@#2]] )/
((maxlist[[Last@#2]] - minlist[[Last@#2]])) &,
          A , {2}] // MatrixForm

or, elegantly using the list properties:

(# - minlist)/(maxlist - minlist) & /@ A  // MatrixForm
Map[ (# - minlist)/(maxlist - minlist) &, A]// MatrixForm

here the first "#" stands for the first row of A,
and you can subtract minlist from it (tough you cannot
subtract minlist from the whole A in one move, got to do
it row by row.


  • Prev by Date: Re: errors while picking random numbers under constraint and in loop also
  • Next by Date: Re: Negation of Negation wanted
  • Previous by thread: Re: ask for help on list operation
  • Next by thread: PackedArray Bug?