The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: strange unique behaviour?
Replies: 4   Last Post: Jan 7, 2013 11:02 AM

Advanced Search

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

Posts: 12
Registered: 7/29/11
strange unique behaviour?
Posted: Jan 7, 2013 10:33 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


i have some complex values (actually concentric hexagonal rings) in the struct n1.
This should be (as this is constructed this way) : 19 unique values, which are later scattered to 57 (19 * 3) values. And unique (which is i guess internally a sort and some further processing) gives me:

>> length(unique(n1.bases))

ans =


>> length(unique([real(n1.bases.') imag(n1.bases.')],'rows'))

ans =


This is done on a
MATLAB Version (R2011b)
Operating System: Linux 3.0.4-43-default #1 SMP Wed Aug 31 09:30:44 UTC 2011 (a432f18) x86_64

Any idea?

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.