Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: picking random numbers  between a certain range
Date: Thu, 18 Feb 2010 15:50:23 +0000 (UTC)
Organization: University of Central florida
Lines: 6
Message-ID: <hljnjv$7kr$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1266508223 7835 172.30.248.38 (18 Feb 2010 15:50:23 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 18 Feb 2010 15:50:23 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2196976
Xref: news.mathworks.com comp.soft-sys.matlab:609324

Hi
I would like to initialize a vector with random numbers between -2 and 2

would it be something like x=rand(1,10) *2?

Any response will be greatly appreciated