February 2020
Beginner
621 pages
19h 34m
English
Compute the first 50 terms of the recurrence
The initial values are .
SOLUTION
The vector of coefficients is and the initial values are given by the vector . Type
>> lfsr([1 0 1 0 0],[0 1 0 0 0],50)ans =Columns 1 through 120 1 0 0 0 0 1 0 0 1 0 1Columns 13 through 241 0 0 1 1 1 1 1 0 0 0 1Columns 25 through 361 0 1 1 1 0 1 0 1 0 0 0Columns 37 through 480 1 0 0 1 0 1 1 0 0 1 1Columns 49 through 501 1
Suppose the first 20 terms of an LFSR sequence are 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1. Find a recursion that generates this sequence.
SOLUTION
First, we find a candidate for the length ...
Read now
Unlock full access