Sin wave simulation Use the following codes, and answer the questions. % Parameter setting A = 1: %Amplitude f = 1: %frequency P = 0: %Phase time = 1.5: %time duration N = 1000: %Sampling number t = 0: time/(N-l): time: %Generate sin wave s = A * sin(2 * pi * f * t + P): %Draw figure plot(t, s) grid on xlabel(‘Time’) ylabel(‘Amplitude’) Run the code and plot the figure: what is the period of the output signal? Change the A = 0.5, then run the code: what is the root mean square voltage of the signal? Change the f = 2, then run the code: what is the period of the output signal? Change the P = pi/4, then run the code: what is the value of the single at time = 0? Addition of frequency components Now, use the code provided before to generate 2 sin waves. S_1(t) = sin(2 pi ft) S_2(t) = 1/3 sin(2 pi 3 ft) Draw the two frequency components. Add the two frequency components together and draw it.