This program may help to understand how to work the digital communication system when we want to exchange information between two points.
Md. Salim Raza (2020). Matlab Code for Digital Communication with BFSK Modulation Technique (https://www.mathworks.com/matlabcentral/fileexchange/44768-matlab-code-for-digital-communication-with-bfsk-modulation-technique), MATLAB Central File Exchange. Retrieved .
Just follow yours guideline.