Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Why Matlab "find" operation is not reversible?
Posted:
Apr 6, 2000 4:08 PM


Hi,
I am trying to understand why Matlab "find" operation is not reversible.
I have simple matrix:
a = [0 0 1 0 0 1 0 0 0 0 0 1 0 0 1 0];
I found its nonzero indexes (indexes of nonzero elements): [ii,jj] = find(a);
Now I recreate the matrix a: b = zeros(4); b(ii,jj) = 1
b =
0 1 1 1 0 1 1 1 0 1 1 1 0 1 1 1
I got a wrong answer which means find operation is not reversible.
Is it a bug, feature or I am wrong somewhere?
Jacob Nikom



