Positive angles in a graph

1 Ansicht (letzte 30 Tage)
Andrea Cesaro
Andrea Cesaro am 3 Apr. 2021
Kommentiert: Andrea Cesaro am 3 Apr. 2021
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?

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Graph and Network Algorithms finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by