 |
|
List Archives > 
Mathcad List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[mathcad] RE: One Question
| [mathcad] RE: One Question |
|
Author: Oakley, Philip SELEX UK
Posted: Mon, 13 Mar 2006 09:23:31 +0000
|
first Sort() it, then do a simple comparison between adjacent elements. This produces the data_values you want. You can count them at this point if you wish
Then use Match (on the original vector, data_values ) to get a vector of their locations.
Philip
From: koko koko "mailto:koko1010yelb"
Sent: Saturday, March 11, 2006 6:30 PM
To: Mathcad Discussion List
Subject: [mathcad] One Question
*** WARNING ***
This mail has originated outside your organization,
either from an external partner or the Global Internet.
Keep this in mind if you answer this message.
Hey
I want a mathcad program :
I have a vector of 100 numbers
I want to find if there are any number that is repeated twice or more . Then I want to extract these numbers in a new vector and count them.
I tried to write a program but it didn't work
Any help.
Thanks
Andrew Philip
_____
Yahoo! Mail
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
|
| [mathcad] Re: One Question |
|
Author: Sven Lindhardt
Posted: Mon, 13 Mar 2006 12:10:38 +0100
|
Hey,
The attached file might be useful. It is in MathCad 11 format.
Regards
Sven Lindhardt
From: koko koko
To: Mathcad Discussion List
Sent: Saturday, March 11, 2006 7:30 PM
Subject: [mathcad] One Question
Hey
I want a mathcad program :
I have a vector of 100 numbers
I want to find if there are any number that is repeated twice or more . Then I want to extract these numbers in a new vector and count them.
I tried to write a program but it didn't work
Any help.
Thanks
Andrew Philip
|
|
Attachments:
Duplicates.mcd
|
| [mathcad] Re: One Question |
|
Author: Chris Whitford
Posted: Tue, 14 Mar 2006 09:12:25 +0000
|
If you prefer a "traditional" Mathcad approach rather than a program, look
at the attached worksheet.
Chris
At 10:30 11/03/2006 -0800, you wrote:
>I want a mathcad program :
>
>I have a vector of 100 numbers
>I want to find if there are any number that is repeated twice or more .
>Then I want to extract these numbers in a new vector and count them.
>I tried to write a program but it didn't work
|
|
Attachments:
Duplicates.mcd
|
Previous by date: [mathcad] All possible pairings of two sets of complex varaibles, Bill Dumke
Next by date: [mathcad] Re: All possible pairings of two sets of complex varaibles, Chris Whitford
Previous thread: [mathcad] One Question, Koko Koko
Next thread: [mathcad] Re: All possible pairings of two sets of complex varaibles, Chris Whitford
|
|
|