I have a phase plot in radians varying from 20 to 26 (a linear graph), how do i convert this plot from -pi to +pi or from 0 to 2 pi?
1 view (last 30 days)
Show older comments
Madhupriya Ganesh
on 14 Dec 2021
Commented: Madhupriya Ganesh
on 14 Dec 2021
I have a phase plot in radians varying from values 20 to 26 (a linear graph) for a ring resonator , how do i convert this plot from -pi to +pi or from 0 to 2 pi?
0 Comments
Accepted Answer
Voss
on 14 Dec 2021
phases = 20:26 % phases going from 20 to 26 radians
phases = mod(phases,2*pi) % the same phase values, now between 0 and 2 pi
phases = phases - pi % the same phase values, now between -pi and +pi
More Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!