docs: Add help on degenerationAll function
Replace existing function description with MATLAB formatted help documentation.