Generate an N 40961 element vector using the MATLAB functio
Generate an N = 40961 element vector using the MATLAB function randn (see randn Command), multiply each element in the vector by v5 and place the result in the variable u Calculate y, given by N-1 x2 n-0 x is implemented in MATLAB by squaring each element of using element-by-element exponentiation (A) The symbol n=0 is called a summation symbol. This symbol indicates that the argument (x2l in this case) must be summed over M samples, starting at 01 and ending at N-1 = 4095
Solution
MATLAB CODE:
N=4096;
x=randn(1,N-1);
y=(1/N)*sum(x.^2)
OUTPUT:
y =
1.0077
AGAIN MATLAB CODE:
N=4096;
x=randn(1,N-1);
y=(1/N)*sum(x.^2)
OUTPUT:
y =
0.9852
So y is called mean-square value of average power of random signal.
