<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255740</link>
    <title>MATLAB Central Newsreader - subplot transpose</title>
    <description>Feed for thread: subplot transpose</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>Thu, 09 Jul 2009 18:30:19 -0400</pubDate>
      <title>subplot transpose</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255740#664025</link>
      <author>Juliette Salexa</author>
      <description>for i=1:25&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;subplot(5,5,i);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;differences=rand(1,6) ;    bar(differences);    title(i);&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
If you run that code above you'll notice that the numbers run from top left corner, to the right, and then down to the next row and to the right again.&lt;br&gt;
&lt;br&gt;
If want them running from top left corner DOWN to the to bottom left, then up to the first row of the next column again.&lt;br&gt;
&lt;br&gt;
Basically I want the transpose of the digram that is generated by the code above.&lt;br&gt;
&lt;br&gt;
Is there  a way ??&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
xoxo</description>
    </item>
    <item>
      <pubDate>Thu, 09 Jul 2009 19:16:02 -0400</pubDate>
      <title>Re: subplot transpose</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255740#664036</link>
      <author>Shanmugam Kannappan</author>
      <description>&quot;Juliette Salexa&quot; &amp;lt;juliette.physicist@gmail.com&amp;gt; wrote in message &amp;lt;h35cvr$63s$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; for i=1:25&lt;br&gt;
&amp;gt;     subplot(5,5,i);&lt;br&gt;
&amp;gt;     differences=rand(1,6) ;    bar(differences);    title(i);&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If you run that code above you'll notice that the numbers run from top left corner, to the right, and then down to the next row and to the right again.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If want them running from top left corner DOWN to the to bottom left, then up to the first row of the next column again.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Basically I want the transpose of the digram that is generated by the code above.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Is there  a way ??&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks&lt;br&gt;
&amp;gt; xoxo&lt;br&gt;
&lt;br&gt;
Hi,&lt;br&gt;
&lt;br&gt;
By default subplot works in row wise but if you need to have in column wise&lt;br&gt;
You can do this way.....&lt;br&gt;
idx = reshape(1:25,5,[])'&lt;br&gt;
idx=idx(:);&lt;br&gt;
for i=1:25&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;subplot(5,5,idx(i));&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;differences=rand(1,6) ; bar(differences); title(i);&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
Hope this helps .....&lt;br&gt;
&lt;br&gt;
Shan......</description>
    </item>
    <item>
      <pubDate>Thu, 09 Jul 2009 19:45:03 -0400</pubDate>
      <title>Re: subplot transpose</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/255740#664047</link>
      <author>Juliette Salexa</author>
      <description>PERFECT! Thanks Shan!</description>
    </item>
  </channel>
</rss>

