필터 지우기
필터 지우기

Positive angles in a graph

조회 수: 4 (최근 30일)
Andrea Cesaro
Andrea Cesaro 2021년 4월 3일
댓글: Andrea Cesaro 2021년 4월 3일
How can I have all positive angles in a graph, that I mean I have a graph plot(x,alfa) for example and all angles are positive, but one,180° is not positive, but negative in the graph, -180° and this messes up the graph, how can I do?

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2021년 4월 3일
%Force all angles must be positive.
mask=theta<0;
mask=360*double(mask);
theta=theta+mask;

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by