11 Mar 2021 - fubar - Sreekar Guddeti
Origin is a graphing and analysis tool used predominantly by experimentalists. In addition to providing convenient UI based routines to plot aesthetic 2D and 3D plots, Origin provides robust analysis tools like linear regression, nonlinear regression, curve fitting routines. *In-situ* LabTalk scripting language allows handling the various columns of data to allow convenient mathematical transformations. In this post, we will consider the structural elements of this scripting language.
From OriginLab
range r1 = col(C);
fitLR iy:=(1,2) fixint:=1 intercept:=r1[1] oy:=col(D);
You can add two lines of code to put R value in a User Defined column label row.
wks.userparam(++Rvalue);
col(D)[D1]$ = $(fitLR.r);