Signal design; Probability of error; Secrecy;

Two Matlab scripts are presented.

code1.m : This Matlab script solves the signal design problem (P2) as described in the paper: B. Dulek and S. Gezici, "Optimal Signal Design for Coherent Detection of Binary Signals in Gaussian Noise under Power and Secrecy Constraints". It relates to the simulation depicted in Section IV - Figure 1.