Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: random vector generation within specific values
Date: Fri, 23 Jul 2010 00:33:04 +0000 (UTC)
Organization: The Mitre Corp
Lines: 16
Message-ID: <i2ao00$mho$1@fred.mathworks.com>
References: <i2aajd$nvb$1@canopus.cc.umanitoba.ca> <1592537430.38822.1279833090745.JavaMail.root@gallium.mathforum.org>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1279845184 23096 172.30.248.35 (23 Jul 2010 00:33:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 23 Jul 2010 00:33:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2318
Xref: news.mathworks.com comp.soft-sys.matlab:655428

john <mushtaq.jaffar@yahoo.com> wrote in message <1592537430.38822.1279833090745.JavaMail.root@gallium.mathforum.org>...
> kindly find here the code i want to implement:
> 
> %%% CODE
> 
> search_Range=[-2.45 +2.45] % here i want to mention values between -2.45 and +2.45 but no values less than +0.65 or -0.65

That doesn't make much sense.
Do you mean no values BETWEEN +0.65 and -0.65?

> 
> pop_Size= 10;
> 
> indiv_Size = 30;
> 
> population(1:pop_Size,1:indiv_Size)=search_Range(1)+(search_Range(2)-search_Range(1))*rand(pop_Size,indiv_Size);