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.