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
 One linear fit, multiple datasets? How?

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
quickkk Posted - 03/28/2003 : 11:40:53 AM
Hi,

I was wondering if it was possible to fit multiple datasets at once. Say I made a scatter plot with data that comes from multiple worksheets, for example, I made several similar experiments and I want to see all of the data at once. If I choose to make a linear fit on this data, origin will only consider the active dataset. This is fine except for when I want to fit all of the data from the many runs, all at once. The only way that I know how to do this is to manually copy the data from my multiple worksheets into a single "master" worksheet and then make the fit. However, this can be extremely painstaking since I might have a lot of runs, different x-ranges in each run, different amounts of data points, etc. I don't see why Origin couldn't easily do this itself. Any input would be greatly appreciated! Thanks.

4   L A T E S T    R E P L I E S    (Newest First)
quickkk Posted - 03/28/2003 : 1:22:05 PM
Thanks,

I was afraid of that! I was hoping that I wouldn't have to write a script for this sort of thing. I'm not that comfortable with Labtalk (or even less Origin C) at this point, but I guess that pratice makes perfect... Thanks for the speedy reply,

Cheers
easwar Posted - 03/28/2003 : 1:10:07 PM
Hi,

You can write either Origin C code or LabTalk script to merge all your datasets to create one "composite" dataset and then perform linear fit to that composite. You mentioned that your datasets may have same or differing x ranges and x values etc. So you would need to decide how to treat points with same x from different dataset set etc - whether to leave them as individual points in the merged dataset, or to average them etc.

If you need help with scripting or Origin C code (Origin C is supported in version 7), please contact tech support with details.

Easwar
OriginLab.



Edited by - easwar on 03/28/2003 1:10:52 PM
quickkk Posted - 03/28/2003 : 12:53:57 PM
Hi,

Thanks for the reply. Unfortunately, this isn't what I want though. What I want to do is make Origin treat each individual dataset as a single one. In other words, I would like Origin to internally "merge", for lack of a better word, all of the individual datasets spread accross multiple worksheets into a single one and then make a linear (or any sort of fit) on this "merged" dataset. This would make my life a lot easier! Thanks once again for your help.

Cheers!
easwar Posted - 03/28/2003 : 12:22:22 PM
quote:

..This is fine except for when I want to fit all of the data from the many runs, all at once.



Hi,

I presume what you want to do is individual linear fits on each of your datasets, but do them all one-by-one with a single command?
You do not have to copy the data from multiple worksheets to a single worksheet etc.

If you have graphed all the datasets (residing in multiple worksheets) in one graph layer, then you can simply use the Linear Fit Tool and check the "Fit all curves" checkbox in the Settings Tab.

If your data is not graphed, you can achieve the above by writing Origin C code or LabTalk Script that could cycle thru all datasets in your project and perform linear fitting on each.

Easwar
OriginLab.


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