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
 Obtain all the data in a certain column or row

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
Ana-Maria Posted - 02/13/2009 : 11:08:07 AM
Origin Ver. 6.1 and Service Release (Select Help-->About Origin):
Operating System: Windows XP

Hi,
This might be a straightforward problem to solve, but anyway… I'm using an Ascii file from which we need to obtain all the data in a certain column or row. For example: from row index 2, I need to obtain all the values: 6.3E-6 0.90 -54.4 67 to m.


The Ascii file look like this:
---1---2---3----4---- … m
1 0.3 -0.1 3.4 -3.4E-4 … m
2 6.3E-6 -0.90 -54.4 67 … m
3 1.23 7.2E-3 -6.3E-2 0.7 … m
… … … … … … m
n n n n n … n\m

I tried to use %Z, but the Origin 6.1 crashed when I used the below code:

%z="";
for(kk=1;kk<=wks.nrows;kk++)
{
k=col(1)[kk];
%z=%z $(k);
};
Getnumber (Select the first row:) ii:z (Select the second row:) zz:z;

However, I try to do it by using %B, but I only obtain a portion of the data (the data that is in the first 39 columns or rows). Does someone have any suggestion about how to obtain all the data in a certain row or column?

I will appreciate any suggestion…
Thanks,
Ana.

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