matrix: Fix argument checks
matrix: Fix interpolation of scale factor