[問題] 2D繪圖坐標問題已回收
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
10/04 14:18, 1F