Topological Changes and the Corresponding Matrix Operation of a Spatial Metamorphic Mechanism