MATLAB: Doesn’t the DMODCE function take in a matrix input when using it for MSK Modulation in the Communications Toolbox 2.0 (R12.1)

Communications ToolboxdmodcematrixModulationmskvertcat

When I run the following code:
M = 2; % states in the modulation
Fd = 1E3; % data rate
Fs = 10E3; % set the sample frequency
Nd = 12; % set the number of data points
MsgData = randint(Nd,3,M);
Envelope = dmodce(MsgData,Fd,Fs,'msk');
I get the following error:
??? Error using ==> vertcat
All rows in the bracketed expression must have the same
number of columns.
Error in ==> D:\R12.1\toolbox\comm\comm\dmodce.m
On line 198 ==> x = [0; x(1:end-1)];

Best Answer

This bug has been fixed in the Communications Toolbox 2.1 (R13). If you are using a previous version, read the following:
This is a bug in the Communications Toolbox 2.0 (R12.1) when using the DMODCE function with matrix inputs for MSK modulation.
There are no workarounds.