Effacer les filtres
Effacer les filtres

Positive angles in a graph

4 vues (au cours des 30 derniers jours)
Andrea Cesaro
Andrea Cesaro le 3 Avr 2021
Commenté : Andrea Cesaro le 3 Avr 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?

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 3 Avr 2021
%Force all angles must be positive.
mask=theta<0;
mask=360*double(mask);
theta=theta+mask;
  1 commentaire
Andrea Cesaro
Andrea Cesaro le 3 Avr 2021
Thank you

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Graph and Network Algorithms dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by