Skip to main content
1-Visitor
September 22, 2010
Solved

Unique Function

  • September 22, 2010
  • 4 replies
  • 4536 views

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

Best answer by MikeArmstrong

Something like the attached?

Mike

4 replies

12-Amethyst
September 22, 2010

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.

1-Visitor
September 23, 2010

Something like the attached?

Mike

1-Visitor
September 23, 2010

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

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

jmG

19-Tanzanite
September 23, 2010

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

SLS1-VisitorAuthor
1-Visitor
September 23, 2010

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

SLS