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
 Forum for Origin C
 mean and standard deviation of selected rows
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

phdkrish19

Japan
12 Posts

Posted - 10/05/2022 :  10:15:34 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2022b
Operating System: windows 11

Hi,

I have a column say A = [ 1, 5, 6, 8, 3, 2, 9]. I would like to calculate the mean and standard deviation from fourth value to seventh value. Please let me know how to write this as an origin command.

Thanks in advance
Krish.

YimingChen

1623 Posts

Posted - 10/06/2022 :  10:42:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply

range r1 = col(A)[4:7];
mean(r1)=;
stddev(r1)=;
Go to Top of Page

phdkrish19

Japan
12 Posts

Posted - 10/06/2022 :  9:30:19 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks a lot!

Krish.

quote:
Originally posted by YimingChen


range r1 = col(A)[4:7];
mean(r1)=;
stddev(r1)=;


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