The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Find all max in dataset
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

jlaurent

France
Posts

Posted - 02/15/2008 :  04:53:04 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5
Operating System:Windows 2000

Hello,

I would like knew how I can search all maximums in few columns in worksheet. This worksheet is compose of a time coulum (in index 1) and 100 amplitude columns.

The aim will be get and stock in another wks the results i.e all index and peck values.

For this I can use the peaks function ?
Which is the good technical to use ?

Regards

Jérôme

couturier

France
291 Posts

Posted - 02/16/2008 :  05:30:59 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Bonjour,
vous pouvez effectuer les opérations suivantes:
- créez un worksheet que vous appelerez Resultat: les indexes des max seront stockés dans la colonne A et les maxs dans la colonne B
- Votre worksheet de données étant actif, executez le script suivant dans le script window:

for (i=2; i<=wks.ncols; i++) {
limit col($(i));
get resultat_a -e fin;
resultat_a[fin+1]=limit.imax;
resultat_b[fin+1]=limit.ymax;
};

ça devrait aller assez vite.

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000