A process that is carried out at the cellular level which results in the assembly, arrangement of constituent parts, or disassembly of the nuclear matrix, the dense fibrillar network lying on the inner side of the nuclear membrane.