Has anyone written a Matlab function for performing Modulo 2 division? For

example, given 2 polynomials (Q, P) with coefficients of 1s and 0s, perform

long division to provide the result of Q / P, and/or the remainder (the user

would have to specify the number of decimal places elements to include in the

answer if the remainder is not requested).

I would be very grateful if you could share your mfile with me (email to

favour some time.

Thanks,

JS