<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239981</link>
    <title>MATLAB Central Newsreader - Plotting a histogram taking particular cell values from multiple matrices</title>
    <description>Feed for thread: Plotting a histogram taking particular cell values from multiple matrices</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>Wed, 26 Nov 2008 18:43:02 -0500</pubDate>
      <title>Plotting a histogram taking particular cell values from multiple matrices</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239981#613444</link>
      <author>Subrat Swain</author>
      <description>Hi all,&lt;br&gt;
I would like to code a program in MATLAB which will plot a histogram taking values from multiple matrices (a particular cell value from all matrices). For example I have 3 matrices (A,B and C). Each matrix is of order 3*3.&lt;br&gt;
A = [1 2 3;4 5 6;7 8 9]&lt;br&gt;
B = [12 13 14;16 18 21;23 25 28]&lt;br&gt;
C = [46 23 16;12 31 33;32 34 54]&lt;br&gt;
&lt;br&gt;
Now I want to code a program which will take the corresponding elements from these 3 matrices (for example A(1,1) - 1, B(1,1) - 12, C(1,1) - 46 ) and plot a histogram. Is it possible to put a loop which will internally take the corresponding elements from the matrices and plot a histogram. This is just an example while I have a large number of data sets which I will be using.&lt;br&gt;
&lt;br&gt;
Appreciate for the help.&lt;br&gt;
&lt;br&gt;
Thanks and Regards,&lt;br&gt;
Subrat Kumar Swain.</description>
    </item>
    <item>
      <pubDate>Fri, 28 Nov 2008 10:50:17 -0500</pubDate>
      <title>Re: Plotting a histogram taking particular cell values from multiple matrices</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239981#613694</link>
      <author>Ryan Ollos</author>
      <description>&quot;Subrat Swain&quot; &amp;lt;swain.subrat01@gmail.com&amp;gt; wrote in message &amp;lt;ggk5bm$3tl$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi all,&lt;br&gt;
&amp;gt; I would like to code a program in MATLAB which will plot a histogram taking values from multiple matrices (a particular cell value from all matrices). For example I have 3 matrices (A,B and C). Each matrix is of order 3*3.&lt;br&gt;
&amp;gt; A = [1 2 3;4 5 6;7 8 9]&lt;br&gt;
&amp;gt; B = [12 13 14;16 18 21;23 25 28]&lt;br&gt;
&amp;gt; C = [46 23 16;12 31 33;32 34 54]&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Now I want to code a program which will take the corresponding elements from these 3 matrices (for example A(1,1) - 1, B(1,1) - 12, C(1,1) - 46 ) and plot a histogram. Is it possible to put a loop which will internally take the corresponding elements from the matrices and plot a histogram. This is just an example while I have a large number of data sets which I will be using.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Appreciate for the help.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks and Regards,&lt;br&gt;
&amp;gt; Subrat Kumar Swain.&lt;br&gt;
&lt;br&gt;
Perhaps you can just use a 3-dimensional array.  In your example this would give you a 3 x 3 x 3 array Z, and you could then pass Z(1,1,:) to histogram.&lt;br&gt;
&lt;br&gt;
If you arrays are not all the same size, then you could put them in a cell array.</description>
    </item>
  </channel>
</rss>

