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
 Row and Column analysis
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

bafaneh

USA
49 Posts

Posted - 09/07/2011 :  5:11:08 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
8.5.1
Windows 7

Hi,

I use the following loop to create a column for my analysis, but the numbers that reference the row and columns are specific to one book. I need to batch process my data, so I would like to know if there is a way to reference the beginning and end column values, (i.e. colstart, colend, or something like that).

for (ii=1; ii<=25; ii++)
{
cell(ii,25) = (cell(ii+1,23) - cell(ii,23))/(cell(ii+1,33) - cell(ii,33));
};

Thanks,
Basheer

greg

USA
1379 Posts

Posted - 09/08/2011 :  2:38:59 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
To process all columns individually regardless of how many columns you have, then use:

for (ii = 1 ; ii <= wks.ncols ; ii++)

If you do some analysis that accepts a range of multiple columns then you can use 'end' as in:

range raAll = !(1:end);
stats raAll;
stats.mean =;
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