0

I need to use BCHEncoder built in function in matlab, but matlab does not recognize it

I have a message called S, I want to encode it using BCHEncoder

S=randi([0 1],k,1);                                
enc = comm.BCHEncoder(n,k);   
% CodewordLength property set to N and the MessageLength property set to 
   K.                      
R=step(enc,S);    

When this code run, this error message appears( Undefined variable "comm" or class "comm.BCHEncoder". )

duaa h
  • 1
  • 5

0 Answers0