Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: How to generate 2D Frequency Matrix
Replies: 8   Last Post: Dec 3, 2012 8:54 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
S Ehtesham Al Hanif

Posts: 9
Registered: 12/1/12
How to generate 2D Frequency Matrix
Posted: Dec 2, 2012 1:19 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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!



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.