I want to output centering and scaling values from the command prompt.
Here is the sample data I took from the matlab help:
x = (0: 0.1: 2.5)';
y = erf(x);
When I tried polyfit command here is the result:
9.284046212199847e-02 -6.231661786330390e-01 1.384345932284717e+00 -1.993673645226568e-02
Second trial with centering and scaling values as output requests gives
>> [ppp1,SSS,muu]= polyfit(x,y, 3)
4.154044003296898e-02 -1.608834507201939e-01 2.001009389523068e-01 9.181275523715360e-01
R: [4x4 double]
I just don't understand why the ppp is differing from ppp1.
Please let me know the mistake in my understanding... Thanks for your time.