https://nl.mathworks.com/help/comm/ref/fskmod.html
fskmod - Frequency shift keying modulation - MATLAB
This MATLAB function outputs the complex envelope y of the modulation of the message signal x using frequency shift keying modulation.
frequency shiftkeyingmodulationmatlab