Matrix conversion with Canonical signed Digit and matrix multiplication?

Up vote 0 down vote favorite share g+ share fb share tw.

I got a code which takes an input value and gives the output in Canonical Signed Digit (CSD) form. I took the code from this link: mathworks.com/matlabcentral/fileexchange.... But I am facing problem when I want to convert all the elements of a matrix in to CSD form.

I used following codes in MATLAB: X = -7.1989 0.9546; 2.6903 -5.0001; rows cols=size(W); W = zeros(rows, cols); for I = 1:rows for j = 1: cols W(i, j) = csdigit(X(i, j), 4, 10) end end W %CSD matrix But it's showing an error:? Subscripted assignment dimension mismatch. Error in ==> csdmatrix at 6 W(i, j) = csdigit(X(i, j), 4, 10) How can I remove the error?

Please help me. Next,i want to perform matrix multiplication in Canonical Signed Digit (CSD) form where A = W*P. Here W is the CSD matrix and P = 0.2597; -5.3109.

Here, each elemant value of P is in fractional decimal form and column size is variable. After performing multiplication of W*P, the resultant matrix A is in decimal form. How can I perform this multiplication in MATLAB?

Matrix signed multiplication canonical digit link|improve this question asked Dec 5 '11 at 9:27Ayesa62.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions