How to convert this formula to matlab language

2 visualizzazioni (ultimi 30 giorni)
Hi guys,
I would like to convert this formula to matlab language.
α = arctan(y − 1/3, x − 1/3) modulus 2π
I tried a=atan2(y-1/3,x-1/3)*mod(2pi) but mod function needs more variables
Thank you

Risposta accettata

Walter Roberson
Walter Roberson il 14 Ott 2019
a = mod(atan2(y-1/3,x-1/3), 2*pi)

Più risposte (0)

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by