Cody

Problem 2772. Find out phase angle of second order system.

Solution 1161811

Submitted on 13 Apr 2017
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
x = 1; y_correct = 0; assert(isequal(phase_angle(x),y_correct))

y = 4.5341e-17

Assertion failed.

2   Fail
x = 0.5; y_correct = 1.0472; assert(abs(phase_angle(x)-y_correct)<0.0001)

y = 0.5236

Assertion failed.

3   Fail
x = 0.25; y_correct = 1.3181; assert(abs(phase_angle(x)-y_correct)<0.0001)

y = 0.6841

Assertion failed.

4   Fail
x = 0.7; y_correct = 0.7954; assert(abs(phase_angle(x)-y_correct)<0.0001)

y = 0.3362

Assertion failed.

Suggested Problems

More from this Author70

Community Treasure Hunt

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

Start Hunting!