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"

1 visualización (últimos 30 días)
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

Respuestas (1)

Tamil selvan
Tamil selvan el 11 de Oct. de 2017
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.

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by