<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265260</link>
    <title>MATLAB Central Newsreader - random matrix generation</title>
    <description>Feed for thread: random matrix generation</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>Sat, 07 Nov 2009 22:18:40 -0500</pubDate>
      <title>random matrix generation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265260#692933</link>
      <author>arun</author>
      <description>hi,&lt;br&gt;
&lt;br&gt;
how can i generate a m*n matrix with the m-rows&lt;br&gt;
1) dependent on each other&lt;br&gt;
2) independent of each other&lt;br&gt;
&lt;br&gt;
also, is it possible to create the same random matrix with just 1's&lt;br&gt;
and 0's under the same 2 criterias?&lt;br&gt;
&lt;br&gt;
thank you,&lt;br&gt;
best, arun.</description>
    </item>
    <item>
      <pubDate>Sat, 07 Nov 2009 23:49:38 -0500</pubDate>
      <title>Re: random matrix generation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265260#692940</link>
      <author>ImageAnalyst</author>
      <description>On Nov 7, 5:18&#160;pm, arun &amp;lt;aragorn1...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; how can i generate a m*n matrix with the m-rows&lt;br&gt;
&amp;gt; 1) dependent on each other&lt;br&gt;
&amp;gt; 2) independent of each other&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; also, is it possible to create the same random matrix with just 1's&lt;br&gt;
&amp;gt; and 0's under the same 2 criterias?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; thank you,&lt;br&gt;
&amp;gt; best, arun.&lt;br&gt;
&lt;br&gt;
--------------------------------------------------------------------&lt;br&gt;
1) depends on what you mean by dependent.&lt;br&gt;
2)  randomArray = rand(100, 50);&lt;br&gt;
&lt;br&gt;
binaryRandomArray = randomArray &amp;gt; 0.5;</description>
    </item>
    <item>
      <pubDate>Sun, 08 Nov 2009 14:42:34 -0500</pubDate>
      <title>Re: random matrix generation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265260#693008</link>
      <author>arun</author>
      <description>On Nov 8, 12:49&#160;am, ImageAnalyst &amp;lt;imageanal...@mailinator.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; On Nov 7, 5:18&#160;pm, arun &amp;lt;aragorn1...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; how can i generate a m*nmatrixwith the m-rows&lt;br&gt;
&amp;gt; &amp;gt; 1) dependent on each other&lt;br&gt;
&amp;gt; &amp;gt; 2) independent of each other&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; also, is it possible to create the samerandommatrixwith just 1's&lt;br&gt;
&amp;gt; &amp;gt; and 0's under the same 2 criterias?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; thank you,&lt;br&gt;
&amp;gt; &amp;gt; best, arun.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --------------------------------------------------------------------&lt;br&gt;
&amp;gt; 1) depends on what you mean by dependent.&lt;br&gt;
&amp;gt; 2) &#160;randomArray = rand(100, 50);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; binaryRandomArray = randomArray &amp;gt; 0.5;&lt;br&gt;
&lt;br&gt;
what i mean by independent is that, if I take any 2 rows and compute a&lt;br&gt;
measure of dependence (say, corr), and then permute one of the rows&lt;br&gt;
and compute *corr* a 1000 times and obtain its distribution, then they&lt;br&gt;
should be that of a uniform distribution's pdf (equally likely). Or,&lt;br&gt;
equivalently, the cdf of p-values obtained directly from corr should&lt;br&gt;
be that of a uniform distribution's pdf.&lt;br&gt;
&lt;br&gt;
if its not, they are dependent in some way.&lt;br&gt;
best, arun.</description>
    </item>
    <item>
      <pubDate>Sun, 08 Nov 2009 14:43:49 -0500</pubDate>
      <title>Re: random matrix generation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265260#693009</link>
      <author>arun</author>
      <description>On Nov 8, 3:42&#160;pm, arun &amp;lt;aragorn1...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; On Nov 8, 12:49&#160;am, ImageAnalyst &amp;lt;imageanal...@mailinator.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; On Nov 7, 5:18&#160;pm, arun &amp;lt;aragorn1...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; how can i generate a m*nmatrixwith the m-rows&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 1) dependent on each other&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 2) independent of each other&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; also, is it possible to create the samerandommatrixwith just 1's&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; and 0's under the same 2 criterias?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; thank you,&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; best, arun.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; --------------------------------------------------------------------&lt;br&gt;
&amp;gt; &amp;gt; 1) depends on what you mean by dependent.&lt;br&gt;
&amp;gt; &amp;gt; 2) &#160;randomArray = rand(100, 50);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; binaryRandomArray = randomArray &amp;gt; 0.5;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; what i mean by independent is that, if I take any 2 rows and compute a&lt;br&gt;
&amp;gt; measure of dependence (say, corr), and then permute one of the rows&lt;br&gt;
&amp;gt; and compute *corr* a 1000 times and obtain its distribution, then they&lt;br&gt;
&amp;gt; should be that of a uniform distribution's pdf (equally likely). Or,&lt;br&gt;
&amp;gt; equivalently, the cdf of p-values obtained directly from corr should&lt;br&gt;
&amp;gt; be that of a uniform distribution's pdf.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; if its not, they are dependent in some way.&lt;br&gt;
&amp;gt; best, arun.&lt;br&gt;
&lt;br&gt;
**** Or, equivalently, the cdf of p-values obtained directly from corr&lt;br&gt;
should&lt;br&gt;
be that of a uniform distribution's pdf.&lt;br&gt;
&lt;br&gt;
This line should be:&lt;br&gt;
Or,&lt;br&gt;
equivalently, the cdf of p-values obtained directly from corr should&lt;br&gt;
be that of a uniform distribution's *CDF*.</description>
    </item>
    <item>
      <pubDate>Sun, 08 Nov 2009 14:43:56 -0500</pubDate>
      <title>Re: random matrix generation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265260#693010</link>
      <author>arun</author>
      <description>On Nov 8, 3:42&#160;pm, arun &amp;lt;aragorn1...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; On Nov 8, 12:49&#160;am, ImageAnalyst &amp;lt;imageanal...@mailinator.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; On Nov 7, 5:18&#160;pm, arun &amp;lt;aragorn1...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; how can i generate a m*nmatrixwith the m-rows&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 1) dependent on each other&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 2) independent of each other&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; also, is it possible to create the samerandommatrixwith just 1's&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; and 0's under the same 2 criterias?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; thank you,&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; best, arun.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; --------------------------------------------------------------------&lt;br&gt;
&amp;gt; &amp;gt; 1) depends on what you mean by dependent.&lt;br&gt;
&amp;gt; &amp;gt; 2) &#160;randomArray = rand(100, 50);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; binaryRandomArray = randomArray &amp;gt; 0.5;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; what i mean by independent is that, if I take any 2 rows and compute a&lt;br&gt;
&amp;gt; measure of dependence (say, corr), and then permute one of the rows&lt;br&gt;
&amp;gt; and compute *corr* a 1000 times and obtain its distribution, then they&lt;br&gt;
&amp;gt; should be that of a uniform distribution's pdf (equally likely). Or,&lt;br&gt;
&amp;gt; equivalently, the cdf of p-values obtained directly from corr should&lt;br&gt;
&amp;gt; be that of a uniform distribution's pdf.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; if its not, they are dependent in some way.&lt;br&gt;
&amp;gt; best, arun.&lt;br&gt;
&lt;br&gt;
**** Or, equivalently, the cdf of p-values obtained directly from corr&lt;br&gt;
should&lt;br&gt;
be that of a uniform distribution's pdf.&lt;br&gt;
&lt;br&gt;
This line should be:&lt;br&gt;
Or,&lt;br&gt;
equivalently, the cdf of p-values obtained directly from corr should&lt;br&gt;
be that of a uniform distribution's *CDF*.</description>
    </item>
    <item>
      <pubDate>Sun, 08 Nov 2009 14:45:47 -0500</pubDate>
      <title>Re: random matrix generation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265260#693011</link>
      <author>arun</author>
      <description>On Nov 8, 3:43&#160;pm, arun &amp;lt;aragorn1...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; On Nov 8, 3:42&#160;pm, arun &amp;lt;aragorn1...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; On Nov 8, 12:49&#160;am, ImageAnalyst &amp;lt;imageanal...@mailinator.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; On Nov 7, 5:18&#160;pm, arun &amp;lt;aragorn1...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; how can i generate a m*nmatrixwith the m-rows&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; 1) dependent on each other&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; 2) independent of each other&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; also, is it possible to create the samerandommatrixwith just 1's&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; and 0's under the same 2 criterias?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; thank you,&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; best, arun.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; --------------------------------------------------------------------&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 1) depends on what you mean by dependent.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 2) &#160;randomArray = rand(100, 50);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; binaryRandomArray = randomArray &amp;gt; 0.5;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; what i mean by independent is that, if I take any 2 rows and compute a&lt;br&gt;
&amp;gt; &amp;gt; measure of dependence (say, corr), and then permute one of the rows&lt;br&gt;
&amp;gt; &amp;gt; and compute *corr* a 1000 times and obtain its distribution, then they&lt;br&gt;
&amp;gt; &amp;gt; should be that of a uniform distribution's pdf (equally likely). Or,&lt;br&gt;
&amp;gt; &amp;gt; equivalently, the cdf of p-values obtained directly from corr should&lt;br&gt;
&amp;gt; &amp;gt; be that of a uniform distribution's pdf.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; if its not, they are dependent in some way.&lt;br&gt;
&amp;gt; &amp;gt; best, arun.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; **** Or, equivalently, the cdf of p-values obtained directly from corr&lt;br&gt;
&amp;gt; should&lt;br&gt;
&amp;gt; be that of a uniform distribution's pdf.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; This line should be:&lt;br&gt;
&amp;gt; Or,&lt;br&gt;
&amp;gt; equivalently, the cdf of p-values obtained directly from corr should&lt;br&gt;
&amp;gt; be that of a uniform distribution's *CDF*.&lt;br&gt;
&lt;br&gt;
The problem when I generate using X = rand(50,100); is that, the&lt;br&gt;
columns also become independent. But I don't (necessarily) want this.&lt;br&gt;
&lt;br&gt;
thank you.</description>
    </item>
    <item>
      <pubDate>Sun, 08 Nov 2009 15:36:24 -0500</pubDate>
      <title>Re: random matrix generation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265260#693016</link>
      <author>dpb</author>
      <description>arun wrote:&lt;br&gt;
&amp;gt; hi,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; how can i generate a m*n matrix with the m-rows&lt;br&gt;
&amp;gt; 1) dependent on each other&lt;br&gt;
&amp;gt; 2) independent of each other&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; also, is it possible to create the same random matrix with just 1's&lt;br&gt;
&amp;gt; and 0's under the same 2 criterias?&lt;br&gt;
&lt;br&gt;
Well, you have to define what dependent means, specifically, in order to &lt;br&gt;
have a generating function even theoretically.  Realizing it may be &lt;br&gt;
something else, but you have to start w/ something.&lt;br&gt;
&lt;br&gt;
Also, as written, 1) and 2) are contradictory if somehow this is to be a &lt;br&gt;
single matrix satisfying both.&lt;br&gt;
&lt;br&gt;
You need a far more precise problem definition to get anywhere methinks.&lt;br&gt;
&lt;br&gt;
--</description>
    </item>
    <item>
      <pubDate>Sun, 08 Nov 2009 15:52:48 -0500</pubDate>
      <title>Re: random matrix generation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265260#693019</link>
      <author>arun</author>
      <description>On Nov 8, 4:36&#160;pm, dpb &amp;lt;n...@non.net&amp;gt; wrote:&lt;br&gt;
&amp;gt; arun wrote:&lt;br&gt;
&amp;gt; &amp;gt; hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; how can i generate a m*n matrix with the m-rows&lt;br&gt;
&amp;gt; &amp;gt; 1) dependent on each other&lt;br&gt;
&amp;gt; &amp;gt; 2) independent of each other&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; also, is it possible to create the same random matrix with just 1's&lt;br&gt;
&amp;gt; &amp;gt; and 0's under the same 2 criterias?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Well, you have to define what dependent means, specifically, in order to&lt;br&gt;
&amp;gt; have a generating function even theoretically. &#160;Realizing it may be&lt;br&gt;
&amp;gt; something else, but you have to start w/ something.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Also, as written, 1) and 2) are contradictory if somehow this is to be a&lt;br&gt;
&amp;gt; single matrix satisfying both.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; You need a far more precise problem definition to get anywhere methinks.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --&lt;br&gt;
&lt;br&gt;
Hi dpb,&lt;br&gt;
I have to create 2 separate matrices (not every other row being&lt;br&gt;
dependent and independent of each other), one satisfying the first&lt;br&gt;
criteria and the other the second.&lt;br&gt;
Regarding the problem definition, did you read my reply to&lt;br&gt;
imageAnalyst? I have given the requirement there.</description>
    </item>
    <item>
      <pubDate>Sun, 08 Nov 2009 15:53:08 -0500</pubDate>
      <title>Re: random matrix generation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265260#693020</link>
      <author>arun</author>
      <description>On Nov 8, 4:36&#160;pm, dpb &amp;lt;n...@non.net&amp;gt; wrote:&lt;br&gt;
&amp;gt; arun wrote:&lt;br&gt;
&amp;gt; &amp;gt; hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; how can i generate a m*n matrix with the m-rows&lt;br&gt;
&amp;gt; &amp;gt; 1) dependent on each other&lt;br&gt;
&amp;gt; &amp;gt; 2) independent of each other&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; also, is it possible to create the same random matrix with just 1's&lt;br&gt;
&amp;gt; &amp;gt; and 0's under the same 2 criterias?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Well, you have to define what dependent means, specifically, in order to&lt;br&gt;
&amp;gt; have a generating function even theoretically. &#160;Realizing it may be&lt;br&gt;
&amp;gt; something else, but you have to start w/ something.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Also, as written, 1) and 2) are contradictory if somehow this is to be a&lt;br&gt;
&amp;gt; single matrix satisfying both.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; You need a far more precise problem definition to get anywhere methinks.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --&lt;br&gt;
&lt;br&gt;
Hi dpb,&lt;br&gt;
I have to create 2 separate matrices (not every other row being&lt;br&gt;
dependent and independent of each other), one satisfying the first&lt;br&gt;
criteria and the other the second.&lt;br&gt;
Regarding the problem definition, did you read my reply to&lt;br&gt;
imageAnalyst? I have given the requirement there.</description>
    </item>
    <item>
      <pubDate>Sun, 08 Nov 2009 16:13:33 -0500</pubDate>
      <title>Re: random matrix generation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265260#693026</link>
      <author>dpb</author>
      <description>arun wrote:&lt;br&gt;
...&lt;br&gt;
&lt;br&gt;
&amp;gt; Regarding the problem definition, did you read my reply to&lt;br&gt;
&amp;gt; imageAnalyst? I have given the requirement there.&lt;br&gt;
&lt;br&gt;
How is one to derive a generating function from that &quot;requirement&quot;, pray &lt;br&gt;
tell?&lt;br&gt;
&lt;br&gt;
I can make a second row of a random matrix be dependent upon the first by&lt;br&gt;
&lt;br&gt;
x=rand(1,10);&lt;br&gt;
x=[x;x];&lt;br&gt;
&lt;br&gt;
Is that ok?&lt;br&gt;
&lt;br&gt;
It meets the definition stated.&lt;br&gt;
&lt;br&gt;
--</description>
    </item>
    <item>
      <pubDate>Mon, 09 Nov 2009 07:31:03 -0500</pubDate>
      <title>Re: random matrix generation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265260#693147</link>
      <author>Bruno Luong</author>
      <description>arun &amp;lt;aragorn168b@gmail.com&amp;gt; wrote in message &amp;lt;8a05888a-f76b-4565-992d-802d92ce953e@v30g2000yqm.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Nov 8, 12:49?am, ImageAnalyst &amp;lt;imageanal...@mailinator.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; On Nov 7, 5:18?pm, arun &amp;lt;aragorn1...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; hi,&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; how can i generate a m*nmatrixwith the m-rows&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 1) dependent on each other&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; 2) independent of each other&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; also, is it possible to create the samerandommatrixwith just 1's&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; and 0's under the same 2 criterias?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; thank you,&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; best, arun.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; --------------------------------------------------------------------&lt;br&gt;
&amp;gt; &amp;gt; 1) depends on what you mean by dependent.&lt;br&gt;
&amp;gt; &amp;gt; 2) ?randomArray = rand(100, 50);&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; binaryRandomArray = randomArray &amp;gt; 0.5;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; what i mean by independent is that, if I take any 2 rows and compute a&lt;br&gt;
&amp;gt; measure of dependence (say, corr), and then permute one of the rows&lt;br&gt;
&amp;gt; and compute *corr* a 1000 times and obtain its distribution, then they&lt;br&gt;
&amp;gt; should be that of a uniform distribution's pdf (equally likely). Or,&lt;br&gt;
&amp;gt; equivalently, the cdf of p-values obtained directly from corr should&lt;br&gt;
&amp;gt; be that of a uniform distribution's pdf.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; if its not, they are dependent in some way.&lt;br&gt;
&amp;gt; best, arun.&lt;br&gt;
&lt;br&gt;
1. Dependent&lt;br&gt;
epsilon = 0.1&lt;br&gt;
A = ones(100,50)+epsilon*randn(100,50)&lt;br&gt;
&lt;br&gt;
2. Independent&lt;br&gt;
A = randn(100,50)&lt;br&gt;
&lt;br&gt;
Bruno</description>
    </item>
    <item>
      <pubDate>Mon, 09 Nov 2009 11:27:03 -0500</pubDate>
      <title>Re: random matrix generation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265260#693177</link>
      <author>ImageAnalyst</author>
      <description>I think dpb and Bruno give excellent examples.  For one more, you&lt;br&gt;
could get vertical correlation betrween rows by doing a convolution in&lt;br&gt;
the vertical direction with a rectangular window (i.e. just average&lt;br&gt;
some number of rows in a given column).  I believe that according to&lt;br&gt;
the central limit theorem, this will tend toward giving a probability&lt;br&gt;
density function that is a Gaussian.  Again, this will satisfy your&lt;br&gt;
vague, overly broad definition.&lt;br&gt;
&lt;br&gt;
You can generate random numbers according to any given pdf if you know&lt;br&gt;
the pdf that you want.  You sort of generate the cdf and invert the&lt;br&gt;
equation - standard stuff out of many textbooks.  But the key word is&lt;br&gt;
&quot;given.&quot;  If you don't give anything then you need to take what we&lt;br&gt;
give you.</description>
    </item>
  </channel>
</rss>

