|
Contents | Previous | Next | Subchapters |
| Syntax |
polfitdlg |
| See Also | linlsqdlg matrix division |
x,
and another column for the dependent variable, y.
In addition, the user will be given a choice for the degree of the
polynomial used in the fit.
a:
n 2
--- [ 2 m ]
> [ y - a + a x + ... + a x ]
--- [ i 1 2 m+1 ]
i=1
where n is the number of rows in the data file
and m is the degree of the polynomial.
The resulting new value for the vector a is displayed in the dialog.
a either directly
in the dialog or by choosing the Fit button.)
The lower plot contains the residuals plotted as circles.
The upper plot contains the data and fitted function values.
The data is plotted as circles and the fitted function is plotted
as a curve.
polfitdlg.
temp.dat contains
1 1 1
2 4 8
3 9 27
4 16 64
5 25 125
and you enter
clear
polfitdlg
O-Matrix will display the following dialog
If you then use the File button to select the file temp.dat,
O-Matrix will display the name of the file in the dialog.
If you then choose the following setting
| x column index | 1 |
| y column index | 2 |
| polynomial degree | 2 |