For a system to be oscillatory, it must have a conjugate complex pole pair. That is, two poles must have the same real part and the same magnitude of the imaginary part, but with different signs, e.g. pole1 =a+i*b, pole2=a-i*b.
Please determine whether the systems G_1(s) and G_2(s) are oscillatory.
For this, write a function with a loop and/or query that outputs a 1 if the system is oscillatory and a 0 if it is not.
oscillatory. The function should be stored in a separate file "is_vibrating.m".
% Content of the file "ist_schwingfaehig.m":
function b_out = ist_schwingfaehig(G)
function [b_out] = ist_schwingfaehig(G)
if abs(pole_1)== (pole_2)
% Where G corresponds to a general transfer function and b_out is
% a boolean data type