% -*- texinfo -*- % @deftypefn {Function File} {@var{rgb} =} ind2rgb (@var{x}, @var{map}) % @deftypefnx {Function File} {[@var{r}, @var{g}, @var{b}] =} ind2rgb (@var{x}, @var{map}) % Convert an indexed image to red, green, and blue color components. % If the colormap doesn't contain enough colors, pad it with the % last color in the map. % If @var{map} is omitted, the current colormap is used for the conversion. % @seealso{rgb2ind, image, imshow, ind2gray, gray2ind} % @end deftypefn