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
 Origin Forum
 Calculate values of regional selected data

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
fticr Posted - 11/11/2021 : 04:32:58 AM
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.
4   L A T E S T    R E P L I E S    (Newest First)
fticr Posted - 11/11/2021 : 12:50:46 PM
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

snowli Posted - 11/11/2021 : 12:46:32 PM
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
fticr Posted - 11/11/2021 : 12:14:44 PM
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


snowli Posted - 11/11/2021 : 09:19:17 AM
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

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