Path: news.mathworks.com!not-for-mail From: <HIDDEN> Newsgroups: comp.soft-sys.matlab Subject: How to generate 2D Frequency Matrix Date: Sun, 2 Dec 2012 18:19:08 +0000 (UTC) Organization: University of Victoria Lines: 9 Message-ID: <k9g62s$h7b$1@newscl01ah.mathworks.com> Reply-To: <HIDDEN> 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 1354472348 17643 172.30.248.48 (2 Dec 2012 18:19:08 GMT) X-Complaints-To: news@mathworks.com NNTP-Posting-Date: Sun, 2 Dec 2012 18:19:08 +0000 (UTC) X-Newsreader: MATLAB Central Newsreader 3590157 Xref: news.mathworks.com comp.soft-sys.matlab:783982 I have a matrix A( i x j) like this which has row=i=1400 numbers and column=j=2. As this matrix both column vectors has repetition of no such as 1's 15 times, 2's 18 times etc. So, I want to transfer that matrix into a single matrix which will be a frequency matrix of that one. Such as: if i think about a table then on column i divided it into (1 to 3, 3-5, 5-7) like that and row ways (1 to 5, 5-10, 10-15) and which matrix i want that should fulfill both condition in a same row at the same time and count how many times it repeats and put that on that space or location. Suppose, If i have row ways 10 group and column ways 5 groups then my final frequency matrix will be (10 x 5) Please If anybody help me to sort it out! It will be great help for me!