converting from radian to degree

3 vues (au cours des 30 derniers jours)
cmcm
cmcm le 18 Avr 2014
Commenté : cmcm le 18 Avr 2014
how to convert a (plot) in radian to degree,,,
  2 commentaires
Arco
Arco le 18 Avr 2014
to convert from radian to degree just multiply with
180/pi
If that doesn't answer your question, could you please specicify the meaning of (plot)?
cmcm
cmcm le 18 Avr 2014
i had a plot (time , error) and that plot in radian (i.e. the maximum value of error is 0.9 for example, but it should be almost 49 degree)... so is there any way to convert that plot from radian to degree?

Connectez-vous pour commenter.

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 18 Avr 2014
Modifié(e) : Azzi Abdelmalek le 18 Avr 2014
That depends on what you want to convert to degrees
plot(x,y*180/pi)
or
plot(x*180/pi,y)
  1 commentaire
cmcm
cmcm le 18 Avr 2014
thank you :)

Connectez-vous pour commenter.

Plus de réponses (1)

Image Analyst
Image Analyst le 18 Avr 2014
Have you considered working only in degrees? Then use the trig functions with d after them, like sind(), cosd(), atand(), atand2(), etc.

Community Treasure Hunt

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

Start Hunting!

Translated by