程序有问题,在140.4、139.8、132等点处有异常值,请教一下大家怎么改,应该是Y=…那一步的式子有问题,谢谢
tUW^dGo. }sJ}c}b Y值为负的那几个点是异常值
@MoCEtt Oiqc]4TL clc
*b!.9p K clear
PR AP~P&^ close all
7q 5 \]J[ nx = 0:0.6:150;
uZ@qlq8 n = length(nx)-1;
[}
d39 figure
lPC{R k.\C xz = [];
^^24a_+2 yz = [];
-UAMHd}4 for ii = 1:n
DHyQ:0q f=300;
\d:Uq5d)0 h=150-nx(ii);
wlh%{l b=atan(h/f);
jq_4x[ d=(b/pi)*180
*lu*h&Y