0
\$\begingroup\$

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. enter image description here

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

Time period of a sine wave can be obtained by using a PLL block in simulink. The output from "wt" of the block will be time period in radians. enter image description here

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.