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 for Programming
 LabTalk Forum
 Correction of 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

HansBrouwer

Netherlands
Posts

Posted - 10/19/2005 :  08:21:18 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi everyone,

I have 2 worksheets
the first has 1 x and 600 y columns
the second has 1 x and 1 y column.
the x columns are the same for both worksheets.
What i would like to do is divide all 600 y columns by the y column from the second worksheet and to put the results in a new worksheet.

Is there information about this in the tutorial and if not. Can anyone help me out please?

Best regards,

Hans

Mike Buess

USA
3037 Posts

Posted - 10/19/2005 :  09:10:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Hans,

You will probably need to change the names of the 1st and 2nd worksheets in the first two lines.

%F=Data1; // name of first wks
%S=Data2; // name of second wks
win -a %F; // activate 1st wks
win -d; // duplicate window
doc -e W {%W=%H}; // find name of new wks
win -a %W; // activate new wks
loop (i,2,wks.ncols) {
%(%W,i) /= %(%S,2);
};

Mike Buess
Origin WebRing Member
Go to Top of Page

HansBrouwer

Netherlands
Posts

Posted - 10/19/2005 :  09:57:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike,

Thanks alot!!!
I have already tried it and it is working!
Best wishes,

Hans
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