Skip to contents

Replace zero values in a matrix by half of the minimum non-null value in the matrix.

Usage

zero_to_half_min(mat)

Arguments

mat

Numeric matrix.

Value

The matrix with zero values replaced.