Hi Ross
in this dataset i am using it is 50x101. But it might vary, lets say, 10000x101. The values are always 1 and +1. Yes the submatrices shd also be mxn where n remains constant as 101 while the number of rows are divided.
"Ross W" <rosswoodskiwi@hotmail.com> wrote in message <i7elqs$390$1@fred.mathworks.com>...
> "Aparna Sampath" <aparna.sampath26@gmail.com> wrote in message <i7ek8s$n8d$1@fred.mathworks.com>...
> > Hi All
> >
> > I am new to using Matlab. I am trying to divide a dataset based on the number of 1 and +1 I have in my dataset. I want to divide it in such a way that each sub matrix has almost equal number of positives and equal number of negatives across matrices. Each sub matrix need not have same number of rows.
> >
> > eg: i have 18 +1 and 25 1, and I want to divide it (into 5 submatrices) such a way that each submatrix has 18/5positives and 25/5 negatives in it.
> > Kindly HELP!
>
> For your example, what might be a typical size of the dataset (number of rows and columns)?
>
> Does the dataset contain other values which are neither +1 nor 1?
>
> Assuming the dataset has more than one column, do the submatrices all need to be rectangular? (I guess yes)
>
> Ross
