Path: news.mathworks.com!not-for-mail
From: "Dmitrey Yershov" <pierrevanstulov@mail.ru>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Generate random numbers with fixed sum and different constraints
Date: Mon, 19 Nov 2012 12:29:08 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 25
Message-ID: <k8d8mk$pv7$1@newscl01ah.mathworks.com>
References: <k80995$9eo$1@newscl01ah.mathworks.com> <k87s11$h6u$1@newscl01ah.mathworks.com> <k88l7g$7tm$1@newscl01ah.mathworks.com> <k88qag$nm1$1@newscl01ah.mathworks.com> <k89ehg$rm6$1@newscl01ah.mathworks.com> <k8b4e9$ja7$1@newscl01ah.mathworks.com> <k8badi$8rd$1@newscl01ah.mathworks.com> <k8ck6h$lhp$1@newscl01ah.mathworks.com> <k8d3bv$a2s$1@newscl01ah.mathworks.com> <k8d77s$lfd$1@newscl01ah.mathworks.com>
Reply-To: "Dmitrey Yershov" <pierrevanstulov@mail.ru>
NNTP-Posting-Host: www-06-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1353328148 26599 172.30.248.38 (19 Nov 2012 12:29:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 19 Nov 2012 12:29:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3853991
Xref: news.mathworks.com comp.soft-sys.matlab:783072

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <k8d77s$lfd$1@newscl01ah.mathworks.com>...
> "Dmitrey Yershov" <pierrevanstulov@mail.ru> wrote in message 
> > Error in delaunayn (line 101)
> > t = qhullmx(x', 'd ', opt);
> > 
> > Error in Untitled (line 32)
> > T = delaunayn(V);
> > 
> > I will be obliged to you if you can fixe it.
> 
> Please try to replace the delaunayn() command with:
> 
> if m==3
>     T = delaunay(V);
> else
>     T = delaunayn(V);
> end
> 
> Obviously it doesn' work for 2-dimensional triangulation.
> 
> Bruno

Thank you very VERY much, Bruno! Your procedure works fast enough to solve my problem and gives proper results (at least by sight for 3 dimensions)! 

P.S.: Special thanks to Roger Stafford and Matt J for basis procedures.