Hi,
I understand that you want to use Viterbi decoder. You may use the vitdec() function for the same.
Syntax:
decodedout = vitdec(codedin,trellis,tbdepth,opmode,dectype)
Please follow the below link to know more about the vitdec() function and its examples.
Thanks,
Dhaniklal