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"

2 次查看(过去 30 天)
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

回答(1 个)

Tamil selvan
Tamil selvan 2017-10-11
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.

类别

Help CenterFile Exchange 中查找有关 Transmitters and Receivers 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by