Scaling and clipping

scale(M, Min, Max) Returns matrix M with elements scaled between Min and Max.

clip(M, Min, Max) Returns matrix M with elements clipped between Min and Max.

Arguments: