필터 지우기
필터 지우기

is it possible to display the graph of ATAND in just one quadrant?

조회 수: 1 (최근 30일)
Mariela Flores
Mariela Flores 2017년 10월 7일
답변: Kian Azami 2017년 10월 7일
I need to replace the part of the graph -atan- at the fourth quadrant to continue in the first quadrant in this code.
% code
end
clc;
xi=0.3;
x=0:0.05:4;
d=1.-x.^2;
e=2*xi*x.^1;
fi=atand(e./d);
plot(x,fi)
hold on
grid on
what can I do?

답변 (1개)

Kian Azami
Kian Azami 2017년 10월 7일
You mean something like this:
close all
clc;
xi=0.3;
x=0:0.05:4;
d=1.-x.^2;
e=2*xi*x.^1;
fi=atand(e./d);
idx0 = find(x == 0);
idx1 = find(x == 1);
idx3 = find(x == 3);
plot(x(1:idx3),fi(1:idx3))
hold on
plot(x(idx3:end),fi(idx0:idx1),'r')
grid on
I didn't get your question properly. But as I understood you need just to play with indices.

카테고리

Help CenterFile Exchange에서 Directed Graphs에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by