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
 Subtracting a "smoothed" curve from another

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
dave_phony Posted - 07/07/2004 : 4:30:55 PM
Hello all,

I have 2 different x-y data sets that don't have the same dx increments and therefore don't have the same x values. The total x interval is roughly the same however. I can plot these two curves on the same graph and Origin will smooth them both. What I want to know is what is the simplest way (if there is a way!) to subtract one "smoothed" curve from the other (and also "recuperate" the data from this new curve)?

Thanks alot - any help would greatly be appreciated....

Dave
4   L A T E S T    R E P L I E S    (Newest First)
dave_phony Posted - 07/08/2004 : 4:54:30 PM
Thanks again Easwar!

Dave
easwar Posted - 07/08/2004 : 4:00:22 PM
Hi Dave,

With the menu item I suggested, if you want to keep the original data, you need to first duplicate one of the curves.

Programmatically, this can be done more flexibly. If you want to try LabTalk or Origin C to do this, you can post in the Programming forums for help.

Easwar
OriginLab

dave_phony Posted - 07/08/2004 : 12:08:18 PM
Thank you Easwar,

This was, in effect, really simple to do. I am new to Origin, so forive me! What I meant by "recuperating the data" was that I was wondering if there was a way to see the new data afterwards from this new curve - but I now see that this data gets put in the "Y2" column.
This leads me to ask, is there a way to generate this new curve without losing the original Y2 data in curve in order to display the 2 original curves plus their "difference curve"?? (I guess you could make 2 copies of Y2 initially but maybe there's a simpler trivial answer).

Thanks again!
Dave
easwar Posted - 07/08/2004 : 09:27:37 AM
Hi Dave,

One simple way to subtract one curve from another (even with varying x values for both curves) is to plot them together, and with the graph active, use the Analysis->Subtract menu item. Then select "Reference Data" from the submenu. In the dialog that comes up, move in one curve name into Y1 and the other into Y2. This will result in Y1 being replaced by (Y1-Y2), where Origin will interpolate the values of Y2 for corresponding X values of Y1, and then do the subtraction.

There are other programmatic ways to do this using either LabTalk or Origin C. What did you mean by "recuperating" the data?

Easwar
OriginLab


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