matlab 绘制arctan(-x/(1-x^2))值域在-pi到0之间的图像

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/01 23:48:07
matlab 绘制arctan(-x/(1-x^2))值域在-pi到0之间的图像

matlab 绘制arctan(-x/(1-x^2))值域在-pi到0之间的图像
matlab 绘制arctan(-x/(1-x^2))值域在-pi到0之间的图像

matlab 绘制arctan(-x/(1-x^2))值域在-pi到0之间的图像
这是个分段函数,分段点是-1 
所以用matlab分段画:
x1=-pi:0.01:-1;
x1=x1(1:end-1);%去掉-1点
y1=atan(-x1./(1-x1.^2));
x2=-1:0.01:0;
x2=x2(1:end-1);
y2=atan(-x2./(1-x2.^2));
plot(x1,y1,'r')
hold on
plot(x2,y2,'r')

你看看