Kinor, thanks for the suggestion. Finally I can read the data using ismember through several steps.
Edward
"kinor" wrote in message <j06jim$cl6$1@newscl01ah.mathworks.com>...
> "edward kabanyas" <djuky_hmi@yahoo.com> wrote in message <j060bl$ne5$1@newscl01ah.mathworks.com>...
> > Hi friends,
> >
> > I want to take several values in the following type of array. The structure is not uniform.
> >
> > List of the players and their score
> > PlayerW number of them 1 score: 1
> > PlayerB number of them 1 score: 2
> > PlayerB number of them 2 score: 3
> > PlayerB number of them 4 score: 4
> > PlayerB number of them 5 score: 5
> > List of the teams and their score
> > Team1 number of them 1 score: 1
> > Team2 number of them 1 score: 2
> > Team3 number of them 1 score: 3
> > Team4 number of them 1 score: 4
> > Team5 number of them 1 score: 5
> >
> > For example, I want to take the value of PlayerB and only the number and the score, so that the output is:
> >
> > 1 2
> > 2 3
> > 4 4
> > 5 5
> >
> > I try to use findstr, however it did not work for several columns' case. Do you have any solution ?
> >
> > Thanks friends
> >
> > Edward
>
>
>
> Hi,
>
> i assume you have a cellarray ? try strfind, it gives you a cellarray which indicates you where PlayerB
> then you could convert the lines in which PlayerB occurs into uint8 and look for values contained in uint8('0123456789')
> hopefully someone gives you a faster solution
>
> hth
> kinor
