Why "bi2de" function returned argument type error when I ran example code from ">>help comm.CRCgenerator"
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
When I run this example code:
% Transmit two message words of length 6
x = logical([1 0 1 1 0 1 0 1 1 1 0 1]');
% Encode the message words using a CRC generator
hGen = comm.CRCGenerator([1 0 0 1], 'ChecksumsPerFrame',2);
codeword = step(hGen, x);
MATLAB returns this error:
Undefined function 'bi2de' for input arguments of type 'double'.
Error in commblkCheckPolynomial (line 46)
genPolyDec = bi2de(truncGenPoly,'left-msb'); % without the leading implicit bit
Error in commblkcrcgen (line 8)
[genPolyDec, numBits] = commblkCheckPolynomial(genPoly);
Error in comm.CRCGenerator/setParameters (line 20)
This is from MATLAB Version: 8.5.0.197613 (R2015a)
0 Kommentare
Antworten (1)
Adam Hug
am 1 Jul. 2015
I was unable to reproduce this error message on my version of R2015a. Perhaps there is something in your workspace or MATLAB path that is causing this? Try executing the following commands and see if it fixes this error:
>> clear all
>> restoredefaultpath
>> rehash toolboxcache
0 Kommentare
Siehe auch
Kategorien
Mehr zu Communications Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!