When using vitdec function for testing error coming like "inputs must be a scalar and a square matrix. To compute elementwise POWER, use POWER (.^) instead"

I am trying to test the vitdec function using soft decision. At this time, I am getting error as "Inputs must be a scalar and a square matrix.To compute elementwise POWER, use POWER (.^) instead"
Syntax used for viterbi decoder is given below,
decoded_data = vitdec(out_interleaved, trellis_type,34,'trunc','soft','32');
Where out_interleaved is an array which contains signed fixed point values
Also I am having one doubt that Does the vitdec function accepts only positive integer value for soft decision based method?
Please help me to solve this problem

Answers (1)

Sorry. I found that the number of soft precision bits must be less than 14bits. So I have used 7 for soft precision bits.
Syntax after the modification decoded_data = vitdec(out_interleaved, trellis_type,34,'trunc','soft','7');
Still I am getting error as Number of soft decision bits must be a positive scalar integer.
Note: I am feeding both positive and negative values to the vitdec function.

Asked:

on 11 Oct 2017

Commented:

on 11 Oct 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!