From: dpb <none@non.net>
Newsgroups: comp.soft-sys.matlab
Subject: Re: matrix generation
Date: Sun, 08 Nov 2009 13:09:16 -0600
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <hd7513$alt$1@news.eternal-september.org>
References: <hd6uef$j43$1@fred.mathworks.com> <hd6vnm$7u3$1@fred.mathworks.com> <hd70t6$iun$1@fred.mathworks.com> <hd71ii$9sb$1@news.eternal-september.org> <hd734d$4qi$1@fred.mathworks.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org U2FsdGVkX18Q4hPa/p8G1SR9I2bhOS7zMqWggMgFTnl577YHWJrvGksfAYpecegv3gsNsH5e/zy04b7j5bgzb0RrcaNz30PC+5w7yPEsf3eQKPfoSrJ8lSiTdkklT6LNvaFdzsteyjk=
X-Complaints-To: abuse@eternal-september.org
NNTP-Posting-Date: Sun, 8 Nov 2009 19:09:24 +0000 (UTC)
In-Reply-To: <hd734d$4qi$1@fred.mathworks.com>
X-Auth-Sender: U2FsdGVkX19Q2ghH4lpoG6KI2ACTa1PdCA55WjBVwS4=
Cancel-Lock: sha1:40EKiCV/nniw9wQO/mHzpWHPw9c=
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
Path: news.mathworks.com!newsfeed-00.mathworks.com!oleane.net!oleane!feed.ac-versailles.fr!proxad.net!feeder1-2.proxad.net!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!not-for-mail
Xref: news.mathworks.com comp.soft-sys.matlab:583391


jack j wrote:
...
> But what if the condition is something like " (1st column element-2nd
> column element)+(3rd column element-4th column element)"for all rows
> should be equal to x???
> 
> In this case will such a defn work out?

Possibly depending on the size of the selection pool and value of x. 
The rudimentary case for the above would be generate three independently 
and solve for the fourth as the parentheses make no difference 
numerically to the overall sum (and since you didn't state any other 
condition).

You'll have the same problem of occasionally (or more than occasionally, 
perhaps) having to resample; whether that's acceptable or not on the 
required population statistics or not is another question you'd have to 
judge.

--