Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: generating a random matrix
Date: Sun, 28 Nov 2010 11:19:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <ictdr8$bp$1@fred.mathworks.com>
References: <iboimp$jpm$1@fred.mathworks.com> <ibolts$it1$1@fred.mathworks.com> <ic5p7b$9gq$1@fred.mathworks.com> <ice5u9$bsc$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1290943144 377 172.30.248.37 (28 Nov 2010 11:19:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 28 Nov 2010 11:19:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2574363
Xref: news.mathworks.com comp.soft-sys.matlab:690597

"Tom Lane" <tlane@mathworks.nospam.com> wrote in message <ice5u9$bsc$1@fred.mathworks.com>...
> > 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 
so easy....
thank you very much
yafit