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
 Generating a tabulated piecewise function alone?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

mdscafetta

USA
1 Posts

Posted - 06/27/2019 :  7:45:10 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2017 SR2
Operating System: Windows 7

Is there any way to simulate, tabulate, and plot a piecewise function by itself, instead of fitting one to a data set?

I also want to do the same thing for a Gaussian curve, but I think i can figure this out.

I need to make a column of data that generates a piecewise function. I need to go from y=0 when x<-0.375 to y=1 when x is between -0.375 and 0.375 and then back to y=0 when x>0.375.

I then need to sum this piecewise function with a series of equivalent Gaussian curves of varied width at many values of x.

I am trying to simulate the field of view of a detector, and want to match up this simulation with real data to determine the actual field of view of my detector.

Thank you, Mark

YimingChen

1617 Posts

Posted - 06/28/2019 :  12:02:31 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You can use Function Plot, please select from menu File:New:Function Plot:2D Function Plot.... Set x From -1 to 1, set Y(x) = x<-0.375?0:(x<0.375?1:0).




Thanks
James
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