IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy

Detailed Description

Converts percents to number of units with extra care.

Extra care is taken so that:

  • no elements in output be zero
  • sum of elements in output does not surpass "total"

Definition in file percs2no_unitss.m.

Go to the source code of this file.

Functions

function percs2no_unitss (in percs, in total)
 

Function Documentation

function percs2no_unitss ( in  percs,
in  total 
)
Parameters
percs
total
Returns
no_unitss