I would be very grateful if you could share your mfile with me (email to
jsh...@dreo.dnd.ca) . It would save me a lot of time. I will return the
favour some time.
Thanks,
JS
Wes
wa...@mathworks.com
---------------------------------------------
> 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 wonder if the "deconv" function would be useful to you. It performs
polynomial division.
EDU» help deconv
DECONV Deconvolution and polynomial division.
[Q,R] = DECONV(B,A) deconvolves vector A out of vector B. The result
is returned in vector Q and the remainder in vector R such that
B = conv(Q,A) + R.
If A and B are vectors of polynomial coefficients, deconvolution
is equivalent to polynomial division. The result of dividing B by
A is quotient Q and remainder R.
See also CONV.
EDU» version
ans =
Student 4.0
EDU»