matlab: Change scale values to double