How Functions are Applied to Matrices
- To: mathgroup at smc.vnet.net
- Subject: [mg66064] How Functions are Applied to Matrices
- From: Gregory Lypny <gregory.lypny at videotron.ca>
- Date: Fri, 28 Apr 2006 06:32:58 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
If I use functions, such as Mean, StandardDeviation, or Total, that
operate on lists, they work the way I expect when applied to a single
list. So, for example, the mean of data[] below is 5.25.
However, when I apply Mean to the entire 3 x 4 matrix, which I
understand to be three lists, I expect to get three means. Instead I
get four because Mean is operating on the columns and not the rows,
that is, the four corresponding elements of each of the three lists.
Why is that?
The mean of the second list:
Applying Mean to the whole matrix computes the mean of columns, not
I need to Map it to have it applied to each list.
Prev by Date:
Re: Re: Calling .exe with Arguments - Run Issue
Next by Date:
Previous by thread:
Re: A Conditional File Import
Next by thread:
Re: How Functions are Applied to Matrices