in data 03-11-2020 11:05 AM
Knowing the coordinates of the experimental points affected by measurement errors, the coefficients
ac and bc of the regression line are determined using the Linear Fit.vi function in the menu
Mathematics / Fitting.
In addition to the values of the two coefficients, the Linear Fit.vi function generates at the Best Linear output
Fit the values of the Y '' coordinates of the points on the regression line and having the same
X coordinates as the experimental points.
The string of numeric values Y '' is the one used for plotting the third graph.
How can i do that? Thank you!
in data 03-11-2020 11:23 AM
You mean something like this?
in data 03-11-2020 11:58 AM
I mean, yeah, something like that, but now i can't find the calculated a and b and the regression line does not appear on the graph.
in data 03-11-2020 12:37 PM
Thank you for your time, I solved the problem.
in data 03-12-2020 02:56 AM
in data 03-12-2020 07:40 AM
@Whifitws wrote:
Thank you for your time, I solved the problem.
When you have solved a problem it is polite to share your solution for the benefit of others who may have the same problem in the future.
in data 03-12-2020 10:15 AM
@Whifitws wrote:
The string of numeric values Y '' is the one used for plotting the third graph.How can i do that? Thank you!
There are no "strings" anywhere. Your descriptions makes about as much sense as your code. I took the liberty to do some alternative interpretations. 😉
@aeastet wrote:
You mean something like this?
This also makes no sense at all. Your linear fit is done on two y-values and ten x-values. The inputs need to have the same size.
@Whifitws wrote:
Thank you for your time, I solved the problem.
Are you sure? Please let us give a chance to check it. Also, next time please use a more useful subject line. Since this is the LabVIEW forum, every single discussion is about LabVIEW, no need to repeat that in the title. Something like "Simulation of a linear fit" would have been more useful.
in data 03-12-2020 11:54 AM
Yes, this is the final result.
in data 03-12-2020 12:20 PM
No, that's not a "result", just an oversized photograph of a monitor showing some LabVIEW code. Attach the VI instead.
in data 03-12-2020 01:19 PM
I apologise for the misunderstanding.