<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250652</link>
    <title>MATLAB Central Newsreader - Combination with matrices</title>
    <description>Feed for thread: Combination with 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>Tue, 05 May 2009 20:41:40 -0400</pubDate>
      <title>Combination with matrices</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250652#647638</link>
      <author>Gustavo </author>
      <description>Hi, &lt;br&gt;
&lt;br&gt;
supposed that i have a matrix like this one,&lt;br&gt;
A = [1 2 3, 4 5 6, 7 8 9]&lt;br&gt;
&lt;br&gt;
i need to find all the possible combinations with this matrix in the matlab. Does anybody nows how it is possible?&lt;br&gt;
&lt;br&gt;
Thanks</description>
    </item>
    <item>
      <pubDate>Tue, 05 May 2009 21:42:02 -0400</pubDate>
      <title>Re: Combination with matrices</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/250652#647660</link>
      <author>Gustavo Morales</author>
      <description>Gustavo &amp;lt;guminozzo@hotmail.com&amp;gt; wrote in message &amp;lt;2725087.60310.1241556131148.JavaMail.jakarta@nitrogen.mathforum.org&amp;gt;...&lt;br&gt;
&amp;gt; Hi, &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; supposed that i have a matrix like this one,&lt;br&gt;
&amp;gt; A = [1 2 3, 4 5 6, 7 8 9]&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; i need to find all the possible combinations with this matrix in the matlab. Does anybody nows how it is possible?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks&lt;br&gt;
&lt;br&gt;
Hi!&lt;br&gt;
&lt;br&gt;
Do you need to mantain the size of your matrix?&lt;br&gt;
&amp;nbsp;Try this:&lt;br&gt;
&lt;br&gt;
reshape(A(randperm(numel(A))),size(A,1),size(A,2))&lt;br&gt;
&lt;br&gt;
Best regards from Venezuela!</description>
    </item>
  </channel>
</rss>

