This is a Matlab code package related to the following article: "Sphere Precoding for Robust Near-Field Communications", arXiv preprint arXiv:2503.06756, 2025.
Environment
- Matlab R2022b
- CVX 2.2.2
- Mosek 11.0
Simulation setup
- The simulation parameters can be set in
sim_params.m
file.
Generate user distributions
- Run
generate_user_distribution.m
to generate the user coordinates.
Precoding design
- Run
compute_precoding_vector.m
to generate the precoding vectors.
Performance evaluation
- Run
evaluate.m
to evaluate the proposed and benchmark methods.
Plot results
- Run
merge.m
to combine the results of all user distributions. - Run
plot_results.m
to plot the SINR performance.
- Run
plot_bf_gain.m
to plot the beamforming pattern.
If you have any questions regarding the code, please contact Hao Luo.
This code package is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
If you in any way use this code for research that results in publications, please cite our original article:
H. Luo, Y. Zhang, A. Alkhateeb, "Sphere Precoding for Robust Near-Field Communications," arXiv preprint arXiv:2503.06756, 2025.