Path: news.mathworks.com!not-for-mail
From: "eren gümü_" <erengumus@e-mail.com.tr>
Newsgroups: comp.soft-sys.matlab
Subject: Re: multivariate sample
Date: Sun, 12 Feb 2012 19:49:09 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 42
Message-ID: <jh953l$puh$1@newscl01ah.mathworks.com>
References: <jh8cta$hdq$1@newscl01ah.mathworks.com>
Reply-To: "eren gümü_" <erengumus@e-mail.com.tr>
NNTP-Posting-Host: www-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1329076149 26577 172.30.248.48 (12 Feb 2012 19:49:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 12 Feb 2012 19:49:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3322188
Xref: news.mathworks.com comp.soft-sys.matlab:757454

"eren gümü_" <erengumus@e-mail.com.tr> wrote in message <jh8cta$hdq$1@newscl01ah.mathworks.com>...
> i have this codes;
> x1=mvnrnd(mu1,var1,n1);
> x2=mvnrnd(mu2,var2,n2);
> x=[x1;x2]
> x =
> 
>     2.1508   -0.8189
>     0.3920   -0.5731
>     1.8062    3.0157
>     1.2171    0.9280
>     0.6265    3.6289
>     0.1680    0.7567
>     1.2869    1.1733
>     1.9232    1.8075
>     0.8214    0.4894
>     0.4783    1.7435
>     2.4320    1.8479
>     0.1299    0.1701
> 
> i want to take all possible samples which have 7 units from x. For example;
> sample= 2.1508   -0.8189   
>              0.3920   -0.5731
>              1.8062    3.0157
>              1.2171    0.9280
>              0.6265    3.6289
>              0.1680    0.7567
>              1.2869    1.1733
> or 
>  2.1508   -0.8189
>  0.3920   -0.5731
>  1.8062    3.0157
>  1.2171    0.9280
>  0.6265    3.6289
>  0.1680    0.7567
>  1.9232    1.8075
> 
> and ... i want all possible samples without replacement. The combination of up to 7 with 12. How can i do this? 
> Thank you for your answers... (sorry for my english)


nchoosek only choose on a vector not matrix