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?
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 };
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.