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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 copy workbook column in matrix column

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
corsairr Posted - 08/24/2010 : 12:49:26 PM
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 ?

Rémy


Origin Ver. and Service Release (Select Help-->About Origin): 8.0 SR6
Operating System:windows XP
1   L A T E S T    R E P L I E S    (Newest First)
Penn Posted - 08/30/2010 : 11:21:55 PM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000