From: Carnë D. <car...@gm...> - 2012-08-21 01:13:53
|
On 20 August 2012 13:33, Roman Bumerl-Lexa <ro...@bu...> wrote: > When using the golay decoder (an error correcting decoder), and there are > more than the three allowed erroneous bits, the function crashes instead of > setting the error flag. > > Golaytestcase.m: > > %octave > % Testcase for crashing egolaydec.m > x=[1 0 1 0 1 0 1 0 1 0 1 0 ]; > y=egolayenc(x); % create the encoded vector. > y(17:2:23)=0; % set four errors in this vector. > [res,err]=egolaydec (y) % try to decode this erroneous vector. > > > > I contacted the author Annamalai, Muthiah <mut...@ma...> > and he wrote : > > “Roman, > > I will not be able to debug the algorithm. But the error can be fixed by > inserting the line, > > E=[S, zeros(1,12)]; > > just after the statement > > done = 0; > > You may also submit a patch to the Octave project. I won't be able to > do this. > > Thanks, > -Muthu“ > > I have inserted the line and it works now fine. I have tested it also for > some other bitvectors containing more than the four errors used in my test > case. > > Can anyone please fix this in the repository. > > Roman Hi Roman, thank you for the fix. I have applied it now to the development tree. Could you check if everything is right now? Carnë |