gfcosets This function produces cyclotomic cosets for a Galois field GF(P) Description GFCS = GFCOSETS(M) produces cyclotomic cosets mod(2^M - 1). Each row of the output GFCS contains one cyclotomic coset. GFCS = GFCOSETS(M, P) produces cyclotomic cosets mod(P^M - 1), where P is a prime number. Because the length of the cosets varies in the complete set, %nan is used to fill out the extra space in order to make all variables have the same length in the output matrix GFCS. Examples Authors Pola Lakshmi Priyanka, IIT Bombay