Function: truecolor

CALL:

cdata = truecolor(x,map)

DESCRIPTION:

Maak een Matlab truecolor map uit een lineaire color map.

INPUT:

    x: lineaire color map (indices in colormap)
    map: colormap waar x naar verwijst
 

OUTPUT:

   cdata: truecolor 3 dim array voor gebruik als cdata property van button.
 

APPROACH:

    x is een vector van indices in map. 
    Maak een array bestaande uit color vectoren uit map.
    Gebruik RESHAPE om dit array om te vormen tot een 3 
    dimensioneel array.