# How do I calculate variations of a square matrix if the elements are binary?

I have a 3x3 square matrix. I want to find out how many unique matrices I can create if each of the elements can be either 1 or 0.

How does the equation change if have NxN matrix?

-
Unique according to what measure? You mean uniqueness up to equivalence under similarity transformations $A=S^{-1}BS$? –  Raskolnikov Jan 11 '11 at 15:34
Sorry I incorrectly labeled this question. Its actually an array, not a matrix. –  mtully Jan 11 '11 at 16:36