Author |
Topic |
|
quickkk
Canada
23 Posts |
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.
|
|
easwar
USA
1964 Posts |
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.
|
|
|
quickkk
Canada
23 Posts |
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
USA
1964 Posts |
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
Canada
23 Posts |
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 |
|
|
|
Topic |
|
|
|