[問題] 2D繪圖坐標問題已回收

看板MATLAB作者 (vu03)時間15年前 (2010/10/02 16:13), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
function Record_file(~) %RECORD_FILE Summary of this function goes here % Detailed explanation goes here testfile1 = [81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 ;2200 2800 3200 4800 6500 9500 12000 13620 12000 9500 6500 4800 3200 2800 2200]; [p1,S1] = polyfit(testfile1(1,:),testfile1(2,:),2); x = 81:0.1:95; [y1,D] = polyval(p1,x,S1); figure(2) plot(x,y1); end 請問一下 我這樣畫出來的圖 最大值並不是13620 而是只有大約接近10000 為什麼會這樣呢!?! 是它有normlize了嘛!?!? 謝謝大家幫忙 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 124.12.51.56

10/04 14:18, , 1F
2次的曲線就是這樣囉
10/04 14:18, 1F
文章代碼(AID): #1CfkcW6A (MATLAB)