Date: May 6, 2013 2:40 PM Author: Bruno Luong Subject: Re: Random Matrix help "Steven_Lord" <firstname.lastname@example.org> wrote in message <email@example.com>...
> % The odds of that happening are so small I'm going to neglect this step for
> the example
I propose to remove the chance of oddity entirely, and furthermore gaining some speed by using RAND rather than RANDN.
n = 5;
A = triu(2*round(rand(n))-1,1);
A = A + A'