Resampling routine for spectral data

Contents

Syntax:

    [Q NEW_WAVE] = translate_spectra(S, SOURCE_WAVE, TARGET_WAVE);

Description:

    Routine for evaluating the spectra in a SOURCE_WAVE domain different to that 
    in which it was originally sampled. This is done using NURBS.

Input:

    S: Matrix of spectra, where the last dimension corresponds to the SOURCE_WAVE domain.
    SOURCE_WAVE: Vector containing the wavelengths in which the spectra was originally
        sampled.
    TARGET_WAVE: Vector containing the wavelenghs over which the spectra is to be
        resampled.

Output:

    Q: Matrix of resampled spectra.
    final_wavelength: Vector of wavelengths used to resample Q.