Change matrix md