Cody

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

Solution 566178

Submitted on 26 Jan 2015 by J.R.! Menzinger
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   Pass
%% x = 1; y_correct = 0; assert(isequal(phase_angle(x),y_correct))

ans = 0

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

ans = 1.0472

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

ans = 1.3181

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

ans = 0.7954