IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
protect_against_inf.m File Reference

Detailed Description

Replaces infinite values by maximum/minimum.

Definition in file protect_against_inf.m.

Go to the source code of this file.

Functions

function protect_against_inf (in y)
 

Function Documentation

function protect_against_inf ( in  y)
Parameters
yVector
Returns
y With +Inf/-Inf values replaced by maximum/minimum respectively