Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*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 smc.vnet.net
  • Subject: [mg44190] Re: ask for help on list operation
  • From: "wouter meeussen" <wouter.meeussen at pandora.be>
  • Date: Sat, 25 Oct 2003 06:26:58 -0400 (EDT)
  • References: <bmqqge$rkc$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Sabrina,

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
or
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.

W.


  • 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?