%% Calculate and Append CRC with MSB First
% Mask the CRC bits in an MSB-first order.
% Set the XOR mask to 1 to make the appended CRC bits XOR masked from the most significant to least significant bit.

mask = 1;
crc2 = lteCRCEncode(zeros(100,1),'24A',mask);
crc2(end-10:end)

% The result is all zeros, except for a single one in last element position.
% Copyright 2012 The MathWorks, Inc.