<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/235929</link>
    <title>MATLAB Central Newsreader - mean of a single column?</title>
    <description>Feed for thread: mean of a single column?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 12 Sep 2008 13:22:01 -0400</pubDate>
      <title>mean of a single column?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/235929#600071</link>
      <author>Michael </author>
      <description>I know I can find the mean of the all the rows and colums of a matrix with&lt;br&gt;
&lt;br&gt;
X =&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1     2     3&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3     4     6&lt;br&gt;
&lt;br&gt;
mean (X,1) % column&lt;br&gt;
mean (X,2) % row&lt;br&gt;
&lt;br&gt;
What is the command to find the mean of a single column within a matrix?</description>
    </item>
    <item>
      <pubDate>Fri, 12 Sep 2008 13:38:48 -0400</pubDate>
      <title>Re: mean of a single column?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/235929#600075</link>
      <author>Christian Zietz</author>
      <description>Michael schrieb:&lt;br&gt;
&lt;br&gt;
&amp;gt; What is the command to find the mean of a single column within a matrix?&lt;br&gt;
&lt;br&gt;
Are you looking for&lt;br&gt;
&lt;br&gt;
mean(X(:,1))&lt;br&gt;
&lt;br&gt;
Christian&lt;br&gt;
-- &lt;br&gt;
Christian Zietz  -  CHZ-Soft  -  czietz (at) gmx.net&lt;br&gt;
WWW: &lt;a href=&quot;http://www.chzsoft.com.ar/&quot;&gt;http://www.chzsoft.com.ar/&lt;/a&gt;&lt;br&gt;
PGP/GnuPG-Key-ID: 0x6DA025CA</description>
    </item>
    <item>
      <pubDate>Fri, 12 Sep 2008 13:41:01 -0400</pubDate>
      <title>Re: mean of a single column?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/235929#600076</link>
      <author>someone </author>
      <description>&quot;Michael &quot; &amp;lt;michael.lisowski@gentex.com.extrachar&amp;gt; wrote in message &amp;lt;gadqdp$ekv$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I know I can find the mean of the all the rows and colums of a matrix with&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; X =&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;      1     2     3&lt;br&gt;
&amp;gt;      3     4     6&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; mean (X,1) % column&lt;br&gt;
&amp;gt; mean (X,2) % row&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What is the command to find the mean of a single column within a matrix?&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; X = [1 2 3 ; 4 5 6]&lt;br&gt;
&lt;br&gt;
X =&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1     2     3&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4     5     6&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; avgX1 = mean(X(:,1))&lt;br&gt;
&lt;br&gt;
avgX1 =&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2.5000&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; avgX2 = mean(X(:,2))&lt;br&gt;
&lt;br&gt;
avgX2 =&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3.5000&lt;br&gt;
&lt;br&gt;
% etc ...</description>
    </item>
    <item>
      <pubDate>Fri, 12 Sep 2008 13:58:02 -0400</pubDate>
      <title>Re: mean of a single column?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/235929#600080</link>
      <author>Michael </author>
      <description>Thanks. That did the trick.  I thought I tried that but whatever.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; mean(X(:,1))</description>
    </item>
  </channel>
</rss>

