MATLAB: Undefined variable “comm” or class “comm.FMBr​oadcastMod​ulator”. Why is this happening on the MATLAB Workspace window

commMATLAB

I am tryng to implement the following example. And i get an error. What could be the reason?
code:
audio = dsp.AudioFileReader('guitartune.wav','SamplesPerFrame',4410);
fmbMod = comm.FMBroadcastModulator('AudioSampleRate',audio.SampleRate, …
'SampleRate',240e3);
fmbDemod = comm.FMBroadcastDemodulator( …
'AudioSampleRate',audio.SampleRate, …
'SampleRate',240e3,'PlaySound',true);

Best Answer

Those are Communications Toolbox functions. You should be able to use them if you have the Communications Toolbox installed.