[問題] curve fitting 後取出參數?已回收

看板MATLAB作者 (歸人)時間16年前 (2009/12/26 17:22), 編輯推噓0(004)
留言4則, 1人參與, 最新討論串1/1
請教各位大大, 我fitting完某組data後,可以得到這樣的答案 General model: q(x) = 1.2*sin(x/12*pi()+c/12*pi())+11.87083 Coefficients (with 95% confidence bounds): c = 4.61e-010 (fixed at bound) 可是我只想要輸出c,該用什麼指令得到它呢?? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.4.195

12/26 17:39, , 1F
找了很久沒找到,一PO文就找到怎麼解,我自問自答一下= =
12/26 17:39, 1F

12/26 17:41, , 2F
q = fit(x,y,g); coe =coeffvalues(q)
12/26 17:41, 2F

12/26 17:41, , 3F
p.s.在MATLAB官網找到的~
12/26 17:41, 3F

12/26 17:42, , 4F
12/26 17:42, 4F
文章代碼(AID): #1BDTNTAB (MATLAB)