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
 Gaussian Fit

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
fini Posted - 10/25/2007 : 4:55:57 PM
I have to do a Gaussian Fit on the left peak in the picture. I use advanced fitting tool, select gaussian function and then choose x date from 500 until 1700. i do same for y data. i take following start values:y0=1300; xc=1200;A=1000; w=200 and i have all on vary. If i then want to fit following error appears:
your fitting function is not generating values. check that your database has values.
if u have a user defined function...

i dont use a use defined function and i surely have values in my dataset. Cause of some transitions between programs all x-values have a >. For example 574>.
COmplete data have 4096 values so i cannot post all data here.
Someone can give an advice?

Edited by - fini on 10/25/2007 5:07:01 PM
6   L A T E S T    R E P L I E S    (Newest First)
fini Posted - 10/26/2007 : 09:46:08 AM
i did what you said and it works fine. gaussian fit works too. very thx for the help

Can you explain me what i have to change in your script to let it work on an other column?

ah got it. easy going.

Edited by - fini on 10/26/2007 09:47:23 AM

Edited by - fini on 10/26/2007 09:55:20 AM

Edited by - fini on 10/26/2007 09:55:48 AM
Mike Buess Posted - 10/26/2007 : 09:05:55 AM
Just select all lines of code as shown below and press Enter.



Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 10/26/2007 09:10:12 AM
fini Posted - 10/26/2007 : 08:59:05 AM
i copied your script in the script window, but i dont know how to execute it. theres an option named script execution but nothing happens if i click it.
fini Posted - 10/26/2007 : 08:50:14 AM
i have sent an e mail with the data. im looking for your help. i have to do some more of these gaussian fits on similar data.
Mike Buess Posted - 10/26/2007 : 08:41:17 AM
Origin interprets 574> as a missing value so you must get rid of all > before you plot. This LabTalk script removes the last character from column 1.

for(i=1;i<=wks.maxrows;i++)
{
%A=cell(i,1)$; // get cell (row=i, col=1)as string
%A=%[%A,%[%A]]; // strip last character which is >
cell(i,1)=%A; // assign to cell
};

Mike Buess
Origin WebRing Member
larry_lan Posted - 10/25/2007 : 9:54:59 PM
Hi Fini:

To restrict the input data range, you can

1> Select the data range before bringing up the fitting dialog page.

2> Select rows on the following



If it doesn't work, please send your data to tech@originlab.com and we will have a try.

Thanks
Larry
OriginLab Technical Services

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