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: unique rows in cell array
Replies: 3   Last Post: May 1, 2013 10:49 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Wendy

Posts: 62
Registered: 1/5/10
unique rows in cell array
Posted: Sep 27, 2010 9:24 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi all,

I am a 2000 by 3 cell, e.g.

{
'MONO1.2' 'HSC1.3' 'CSF1'
'PRE_BCELL2.3' 'HSC1.3' 'PDGFA'
'PRE_BCELL2.3' 'HSC1.3' 'PDGFA'
'GMP.GRAN1.2.3' 'HSC1.3' 'CSF1'
'BCELLA1.2.3.4' 'HSC1.3' 'DTL'
}

I want to return a cell array with unique rows, e.g.
{
'MONO1.2' 'HSC1.3' 'CSF1'
'PRE_BCELL2.3' 'HSC1.3' 'PDGFA'
'GMP.GRAN1.2.3' 'HSC1.3' 'CSF1'
'BCELLA1.2.3.4' 'HSC1.3' 'DTL'
}

Is there any function in matlab for that? I used unique(X,'rows'), but it gives me an error of "Input must be a cell array of strings".

Thank you very much,
Wendy



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.