由于需要使用到curve fitting box的功能
http://ppt.cc/RSva
因为用curve fitting 会先标准化
where z is centered and scaled:
z = (x-mu)/sigma
mu = 4200.5
sigma = 2425
但是问题在我网络上一般标准化的公式(x-mean(x))/std(x)
这样算出来的mu跟sigma完全差很大
help理面有提到
When you select this option, the columns of the design matrix are brought to
the same order of magnitude by centering the X data at zero mean and scaling
the data to a unit standard deviation:
NewXData=(XData-mean(XData))./std(XData)
好像是说样本数 (sample)越多,mu和sigma也会变大
我试了一下也是如此
但不知道要怎么用polyfit去执行,因为我必须把数字拿出来,
所以不能用toolbox gui去算QQ
感谢回答><