Showing results for 
Search instead for 
Did you mean: 

Plot a function by function equation and extrapolate



I did linear regression and got an equation like y=a*x+b. Now i want to extrapolate that function, but i dont have values for that region i want extrapolate to. Is it possible to plot the function by its equation and extrapolate the range?


In attach is an image of my values (green) and the regression curve (light red). I want my curve to intersect zero.


I tried already to add the point (0/0.37) to the regression chanels. But it didnt work. 0.37 is b in my case.


thx for help



0 Kudos
Message 1 of 4

Hi LePot,


You can create a channel from a linear "y = mx + b" formula with the "Generate Numeric Channel" dialog in the "Channel Functions" palette of the ANALYSIS panel-- you just need to tell it the starting and ending X values and the slope "m".


Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 4

Hey Brad_Turpin,


at first thx for ur help.


I tried it but it didnt work out. Of course I can type in the starting and end x values but where to type in the slope and what about the b? I did an image of the "Generate Numeric Channel" for u to check out if its the right one u talked about.



0 Kudos
Message 3 of 4

Hi LePot,


Yes, that's the function I mentioned.  The start value and end values already have the m and b parameters built into them.  Assuming you want the x range to start at x1 and continue to x2, these would be the y1 and y2 values you would type into the dialog:


y = m(x) + b
y1 = m(x1) + b
y2 = m(x2) + b


Typically you would do this in a VBScript using the ChnLinGen() command.  There is also a ChnLinGenImp() command that takes the y1 and m parameters.


Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 4 of 4