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
 One linear fit, multiple datasets? How?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

quickkk

Canada
23 Posts

Posted - 03/28/2003 :  11:40:53 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.

Go to Top of Page

quickkk

Canada
23 Posts

Posted - 03/28/2003 :  12:53:57 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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!
Go to Top of Page

easwar

USA
1964 Posts

Posted - 03/28/2003 :  1:10:07 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

quickkk

Canada
23 Posts

Posted - 03/28/2003 :  1:22:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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