# Time period of sine wave

I need to plot the time period of sine wave (wt) in rad. Am using

                         rad = asin (complex(Vm));


for getting the angle in rad. While plotting the MATLAB takes 180 deg as 0, 270 deg as -90 and 360 as 0. How can I get the time period within 0 to (2*pi). I have attached the scope output of the above equation.

• matlab is , I think, unwrap(), but if that's not the name, there's a function that does that, just google. – Neil_UK Nov 13 '17 at 9:18
• It is unclear what you are asking. It is likewise unclear what you are showing. That does not look like a plot of asin(). – Matt Nov 13 '17 at 18:22