Path: news.mathworks.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!news-fra1.dfn.de!newsfeed.pionier.net.pl!news.dialog.net.pl!not-for-mail
From: "uC" <bla.bla@uc.uc>
Newsgroups: comp.soft-sys.matlab
Subject: Re: density matrix conversion - vectorization
Date: Fri, 1 Aug 2008 18:25:26 +0200
Organization: Dialog Net
Lines: 34
Message-ID: <g6vddd$i6k$1@news.dialog.net.pl>
References: <g6v9mp$g0r$1@news.dialog.net.pl> <g6vbs7$b4g$1@fred.mathworks.com>
NNTP-Posting-Host: dynamic-78-8-130-252.ssp.dialog.net.pl
Mime-Version: 1.0
Content-Type: text/plain;
Content-Transfer-Encoding: 7bit
X-Trace: news.dialog.net.pl 1217607917 18644 78.8.130.252 (1 Aug 2008 16:25:17 GMT)
X-Complaints-To: abuse@dialog.net.pl
NNTP-Posting-Date: Fri, 1 Aug 2008 16:25:17 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
Xref: news.mathworks.com comp.soft-sys.matlab:483150



"D Stobbe" <dstobbe101@yahoo.com> wrote in message 
news:g6vbs7$b4g$1@fred.mathworks.com...
> UC-
>
> So what do you actually want to do?  It sounds like you
> want:
>
> Given M:
>
> M = [10, 20; 30, 40]
>
> V = [1,1,10;
>     1,2,20;
>     2,1,30;
>     2,2,40]

thanks for your reply
no, MxN is a population density matrix and based on that I would like to 
generate people locations

so for your M matrix V should contain (x,y) coordinates of:
10 different people in (1,1) pixel
20 different people in (2,1) pixel
30 different people in (1,2) pixel
40 different people in (2,2) pixel

so it will be 100x2 matrix as for size

(x,y) coordinates will be randomly generated within pixel size (in my case 
25x25m) but it is a different story

best wishes,
uC