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
 Origin Forum
 Calculate values of regional selected data
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

fticr

Taiwan
12 Posts

Posted - 11/11/2021 :  04:32:58 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi:

I'd like to calculate values (e.g. RMS or mean) of regional selected data. Is it possible to use LabTalk script to perform it?

Are there any commands such as:
a = rms(____); (____= the red selected region)
a=



Thank you.

Edited by - fticr on 11/11/2021 04:33:49 AM

snowli

USA
1386 Posts

Posted - 11/11/2021 :  09:19:17 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,
We support range notation to specify a range in worksheet, graph, etc.
https://www.originlab.com/doc/labtalk/guide/range-notation
Also we have many built-in functions to use in Labtalk
https://www.originlab.com/doc/LabTalk/guide/Functions#Built-In_Functions

E.g.

range aa=[graph1]layer1!1[10:20];
ma=mean(aa);
ma=;



Thanks, Snow
Go to Top of Page

fticr

Taiwan
12 Posts

Posted - 11/11/2021 :  12:14:44 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Snow,

Thank you for the reply.

I wonder if I can select the region I want graphically (using Regional Data Selector), and then calculate the values of the selected region?

In other words, does range notation support graphically selected region?

Thanks,

quote:
Originally posted by snowli

Hello,
We support range notation to specify a range in worksheet, graph, etc.
https://www.originlab.com/doc/labtalk/guide/range-notation
Also we have many built-in functions to use in Labtalk
https://www.originlab.com/doc/LabTalk/guide/Functions#Built-In_Functions

E.g.

range aa=[graph1]layer1!1[10:20];
ma=mean(aa);
ma=;



Thanks, Snow


Go to Top of Page

snowli

USA
1386 Posts

Posted - 11/11/2021 :  12:46:32 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,
%C refers to current plot. If there is selection, it will refer to that as well

So u don't have to define range.
Just do
ma=mean(%C)

Thanks, Snow
Go to Top of Page

fticr

Taiwan
12 Posts

Posted - 11/11/2021 :  12:50:46 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Snow:

Thank you for the reply and answer.

That was really helpful.

quote:
Originally posted by snowli

Hello,
%C refers to current plot. If there is selection, it will refer to that as well

So u don't have to define range.
Just do
ma=mean(%C)

Thanks, Snow

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