程序有問題,在140.4、139.8、132等點處有異常值,請教一下大家怎么改,應(yīng)該是Y=…那一步的式子有問題,謝謝
x[h<3V" "NI>HO.U Y值為負(fù)的那幾個點是異常值
0.,&B5) & ;x1Rx clc
XVK[p=cIL clear
X+G*Q}5 close all
4pHPf<6 nx = 0:0.6:150;
KARQKFp!C> n = length(nx)-1;
3t}o0Ai9 figure
`oI/;& xz = [];
XdXS^QA.s yz = [];
{;rpgc for ii = 1:n
%EhU!K#[ f=300;
j~<iTLM h=150-nx(ii);
*d*;M> b=atan(h/f);
"VOWV3Z d=(b/pi)*180
Jd_1>p syms c
5~TA(cb5 Y=solve(sin(c-b)-1.494*sin(3*c-pi)==0,c);
4OgGZ C=double(Y);
YSUH*i/% e=(C/pi)*180;
m##z x=0:0.1:0.6;
?^A:~"