tommyears
Industrial
- Apr 18, 2006
- 3
Hi,
I have two sets of data, 'x' and 'y'. They are related to each other.
x = 239.18 239.18 239.18 486.63 486.63 237.9 237.9 412.33 412.33 412.33 412.33 367.51 367.51 367.51 367.51 367.51
y = 288.74 301.76 333.2 166.87 210.52 337.92 299.54 273.76 224.1 197.59 199.37 251.24 247.53 236.45 233.29 204.35
From looking at the data it can been seen that the values are corrupted by noise - this seems to be giving me problems when trying the use the polyfit and polyval functions to plot a 'line of best fit'. The reason I think is because x = 239.18 239.18 239.18 (all the same value) relate to slightly different values of y (due to noise) y = 288.74 301.76 333.2. The line fitting functions seem to have problems resolving this when the line of best fit is to be plotted.
I would appreciate any help in resolving this issue.
Regards
Tom Myers
I have two sets of data, 'x' and 'y'. They are related to each other.
x = 239.18 239.18 239.18 486.63 486.63 237.9 237.9 412.33 412.33 412.33 412.33 367.51 367.51 367.51 367.51 367.51
y = 288.74 301.76 333.2 166.87 210.52 337.92 299.54 273.76 224.1 197.59 199.37 251.24 247.53 236.45 233.29 204.35
From looking at the data it can been seen that the values are corrupted by noise - this seems to be giving me problems when trying the use the polyfit and polyval functions to plot a 'line of best fit'. The reason I think is because x = 239.18 239.18 239.18 (all the same value) relate to slightly different values of y (due to noise) y = 288.74 301.76 333.2. The line fitting functions seem to have problems resolving this when the line of best fit is to be plotted.
I would appreciate any help in resolving this issue.
Regards
Tom Myers