matlab 中如何根据这个函数 tanx=(2(cost-cos(pi/4)*sin(t)) /(2(cost-cos(pi/4))*cos(t)+1) 画出拟合曲matlab 中如何根据这个函数 tanx=(2(cost-cos(pi/4)*sin(t)) /(2(cost-cos(pi/4))*cos(t)+1) 画出(x和t)拟合曲线 t 取值范围是

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 19:12:30

matlab 中如何根据这个函数 tanx=(2(cost-cos(pi/4)*sin(t)) /(2(cost-cos(pi/4))*cos(t)+1) 画出拟合曲
matlab 中如何根据这个函数 tanx=(2(cost-cos(pi/4)*sin(t)) /(2(cost-cos(pi/4))*cos(t)+1) 画出(x和t)拟合曲线 t 取值范围是(-pi/2 到pi/2)
θ角度取30°,35°,40°,45°把这三曲线画在一个图里 

t=-pi/2:0.01:pi/2;
x=atan((2*(cos(t)-cos(pi/4)*sin(t)))./(2*(cos(t)-cos(pi/4)).*cos(t)+1));
plot(t,x)