Skip to main content
1-Visitor
Sep 22, 2010 6:44 PM UTC
Solved

Unique Function

I need to recall the unique numbers for an array or vector to remove repeat/dupliate values. This can be easily done using the Excel's unique function. Is there a function in Mathcad or a simple program line to accomplish this?

SLS

1-Visitor
Sep 23, 2010 12:43 PM UTC

Something like the attached?

Mike

5 replies

12-Amethyst
Sep 22, 2010 7:54 PM UTC

Try the Stuart's set function. I adopt it in http://communities.ptc.com/servlet/JiveServlet/download/91267-12172/set.mcd

Can see also http://communities.ptc.com/message/91270#91270, between others post.

Regards. Alvaro.

Translate
1-Visitor
Sep 23, 2010 12:43 PM UTC

Something like the attached?

Mike

Translate
1-Visitor
Sep 23, 2010 2:09 PM UTC

1.The rotate(n,v) added for its great utility.

2. Drop(V) w/o match applied after rotate(n,v)

jmG

Translate
19-Tanzanite
Sep 23, 2010 3:03 PM UTC

Here's another one, that works for matrices as well as vectrors

Translate
SLS1-VisitorAuthor
1-Visitor
Sep 23, 2010 6:23 PM UTC

Thanks to all who replyed. The examples are excellent and my was question answered.

SLS

Translate