Clear Filters
Clear Filters

How to convert this formula to matlab language

1 view (last 30 days)
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

Accepted Answer

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

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!