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?

 Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 3 de Abr. de 2021

0 votos

%Force all angles must be positive.
mask=theta<0;
mask=360*double(mask);
theta=theta+mask;

Más respuestas (0)

Categorías

Más información sobre Graph and Network Algorithms en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 3 de Abr. de 2021

Comentada:

el 3 de Abr. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by