194 views (last 30 days)

Azzi Abdelmalek
on 1 Oct 2013

v=[2 3]

angle1=angle(v(1)+j*v(2))

Azzi Abdelmalek
on 1 Oct 2013

the vector v is represented by two coordinates v(1) and v(2), or by the complex number v(1)+j*v(2)

Jan
on 1 Oct 2013

This is the included angle in the range [0, pi]:

v = [rand, rand];

angle = atan2(abs(v(2)), v1)

Perhaps you want an oriented angle from [0, 2*pi] or [-pi, pi]?

Opportunities for recent engineering grads.

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

Start Hunting!
## 0 Comments

Sign in to comment.