You are given the following Matlab codes:
fs = 1000;
N = 1000;
f = 10;
t = (1:N)/fs;
x = 10*sin(2*pi*f*t);
a. What is the sample interval with unit? (Ts = Sampling frequency / Number of points)
b. What is the period of the generated sine wave x with unit? (T = )
c. What is the length of the vector t? (mean(t) = )
d. Use Matlab 'mean' and 'sqrt' to numerically calculate the RMS value of the given sinusoidal signal x. Hint: x_square = x.^2 in Matlab. List only additional statements to the above 5 statements and answer only.
e. Calculate analytically the RMS value of the sine wave x. Hint: cos(20) = 1 - 2*sin^2(0) and RMS definition. Hint: Use Matlab's 'syms' and 'int' to verify your answer.