[問題]polyfit的問題 已回收
新手首po(潛水多年^^...)
最近在做曲線擬合的問題
我有500個資料點,polyfit(x,y,n),照理說應該可以取蠻高的階數(n)做擬合
但是我畫1到500,它只有n=3以下才ok,並不是說大於3有error
而是會出現Warning: Polynomial is badly conditioned. Add points with distinct X
values, reduce the degree of the polynomial, or try centering
and scaling as described in HELP POLYFIT.
資料點的點數很多啊,階數已經降到很低了,try centering and scalling
這邊我看不懂@@,是這個的問題嗎?
之後還要做y軸各點對擬合曲線的差值,請問如果不理warning可以嗎??
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.13.117