dwt matrix