matlab: Change scale value type to double