The second argument you pass to the decode() routine must be a row vector whose length is the same as the block length; it is the data to be decoded.
Note: fec.ldpcdec started being replaced as of R2012b. Unless you need to maintain compatibility with R2012a or earlier, it is recommended that you rewrite your code in terms of comm.LDPCDecoder
