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
 copy workbook column in matrix column
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

corsairr

1 Posts

Posted - 08/24/2010 :  12:49:26 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,

I have a bunch of workbook and I try to copy the last column of each in a matrix. I can't find a command in order to make this kind of copy. Does anybody have an idea ?

Rmy


Origin Ver. and Service Release (Select Help-->About Origin): 8.0 SR6
Operating System:windows XP

Penn

China
644 Posts

Posted - 08/30/2010 :  11:21:55 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You can first copy all the last column to a newly created workbook by using the colcopy X-Function. And then use the w2m X-Function to convert this workbook to the matrix. For example:

newbook result:=bn$;  // create a new workbook
num = 4;  // number of columns to copy
wks.nCols = num;
for(ii=1; ii<=num; ii++)
{
	colcopy irng:=[Book$(ii)]Sheet1!Col(1) orng:=[bn$]Sheet1!$(ii);
}
w2m iw:=[bn$]sheet1! om:=[mbook1]msheet1!mat(1);


Penn
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