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
 Generating a tabulated piecewise function alone?

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
mdscafetta Posted - 06/27/2019 : 7:45:10 PM
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
1   L A T E S T    R E P L I E S    (Newest First)
YimingChen Posted - 06/28/2019 : 12:02:31 PM
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

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