In this problem alpha is your candidate number when sin alph
In this problem alpha is your candidate number. when sin alpha > 0 the signals 5sin (alpha/10000 t) and 10cos (alpha/20000 t) are added together to create the input signal to the engineering system of transfer function 1/s^2 + 15s + 5. when sin alpha lessthanorequalto 0 the signals 5sin(alpha/10000 t) and 10cos (alpha/20000 t) are multiplied together to create the input signal to the engineering system of transfer function 1/s^2 + 15s + 5. Use MATLAB Simulink to simulate this process and display the output signal from the system in one scope, and the rest signals in another scope, also the properties of each block need to be shown and included in the report.
Solution
clc
clear all
alpha = input(\"Enter alpha value\");
X = sin(alpha);
t= 0:1:1000
t=t+1;
for t = 1:1000
if X>0
s= ((5*sin(alpha/10000*t)+(10*cos(alpha/20000*t));
else
s= ((5*sin(alpha/10000*t)*(10*cos(alpha/20000*t));
end
a(t)= ((1/s^2)+15*s+5);
t=t+1;
end
%% define t, It is not mentioned here.
