How to convert this formula to matlab language

2 Ansichten (letzte 30 Tage)
Zhsha
Zhsha am 14 Okt. 2019
Beantwortet: Walter Roberson am 14 Okt. 2019
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

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB 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