How to code the following expression in MATLAB
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hello all, I am trying to understand how to code the following equation (1) in MATLAB:
----(1)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1517776/image.png)
where,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1517781/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1517786/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1517791/image.png)
And each
is drawn randomly from set
.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1517796/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1517801/image.png)
Also
i.e.,
denotes cardinality of a set.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1517806/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1517811/image.png)
If N = 16 and if
are as follows:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1517816/image.png)
x_1 = [xs xs 0 0 0 0 0 0 ]'; x_2 = [xs 0 xs 0 0 0 0 0 ]'; x_3 = [xs 0 0 xs 0 0 0 0 ]'; x_4 = [xs 0 0 0 xs 0 0 0 ]';
x_5 = [xs 0 0 0 0 xs 0 0 ]'; x_6 = [xs 0 0 0 0 0 xs 0 ]'; x_7 = [xs 0 0 0 0 0 0 xs ]'; x_8 = [0 xs xs 0 0 0 0 0 ]';
x_9 = [0 xs 0 xs 0 0 0 0 ]'; x_10 = [0 xs 0 0 xs 0 0 0 ]'; x_11 = [0 xs 0 0 0 xs 0 0 ]'; x_12 = [0 xs 0 0 0 0 xs 0 ]';
x_13 = [0 xs 0 0 0 0 0 xs]'; x_14 = [0 0 xs xs 0 0 0 0]'; x_15 = [0 0 xs 0 xs 0 0 0]'; x_16 = [0 0 xs 0 0 xs 0 0]';
where xs = sqrt(1/2)*(randn(1,1)+1i*randn(1,1)); % transmitted signal of Complex Gaussian nature
Any help in this regard will be highly appreciated.
2 comentarios
Respuestas (1)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!