$LastChangedDate: 27-Juil-2011 $

# CL_graduate

Simple graduation calculation

## Calling Sequence

       [vmin, vmax, nb1, nb2] = CL_graduate(xmi, xma, ns1, ns2)

## Description

- Computes uniformly distributed graduation values.

  The steps are computed such that the corresponding values (vmin+k*(vmax-vmin)/nb1, k=0:nb1) are of the form: k*10^n, with k in [1,2,3,5,6]. The substeps are then chosen accordingly. For instance, if k=1, possible values for nb2 are 1, 2, 5, 10, and so on...

## Parameters

xmi:

  User data minimum value.

xma:

  User data maximum value.

ns1:

  (optional) Approximate number of steps wanted. Default is 7.

ns2:

  (optional) Approximate number of sub-steps wanted. Default is 5.

vmin:

  Interval minimum value (vmin <= xmi).

vmax:

  Interval maximum value (vmax >= xma).

nb1:

  Number of steps.

nb2:

  Number of sub-steps.

## Authors

- CNES - DCT/SB (AL)

## See also

- CL_autoLevels

## Examples

    [vmin, vmax, nb1, nb2] = CL_graduate(0, 6)
    [vmin, vmax, nb1, nb2] = CL_graduate(1.14, 2.27, 5, 5)