Path: news.mathworks.com!not-for-mail
From: "Tom Lane" <tlane@mathworks.nospam.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: generating a random matrix
Date: Mon, 22 Nov 2010 11:32:08 -0500
Organization: The MathWorks, Inc.
Lines: 13
Message-ID: <ice5u9$bsc$1@fred.mathworks.com>
References: <iboimp$jpm$1@fred.mathworks.com> <ibolts$it1$1@fred.mathworks.com> <ic5p7b$9gq$1@fred.mathworks.com>
NNTP-Posting-Host: ah-tlane.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain;
	format=flowed;
	charset="UTF-8";
	reply-type=response
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1290443529 12172 172.31.57.120 (22 Nov 2010 16:32:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 22 Nov 2010 16:32:09 +0000 (UTC)
In-Reply-To: <ic5p7b$9gq$1@fred.mathworks.com>
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Newsreader: Microsoft Windows Live Mail 14.0.8089.726
X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726
Xref: news.mathworks.com comp.soft-sys.matlab:689011

> i have vector A : [1, 2, 3 ,4 ,5, 6 ]
> i woukd like to get something random like this (for example) :[ 1, 2.1, 
> 3.1, 4.2, 5.3 ,6]
> -the same matrix with noise in it...

You can easily compute things like the following:

  A + rand(size(A))
  A + 0.01 * rand(size(A))
  A + 0.01 * randn(size(A))

-- Tom