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$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1266508223 7835 (18 Feb 2010 15:50:23 GMT)
NNTP-Posting-Date: Thu, 18 Feb 2010 15:50:23 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2196976
Xref: comp.soft-sys.matlab:609324

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