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

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)