MATLAB: Colour specification for gray colour colour specifivation I have a line taken fron wavelet3d demo hiso = patch(isosurface(Ds,5),'FaceColor','k','EdgeColor','none'); k gives black colour,but i need gray colour instead of black,please tell the colour code for gray colour Best Answer Use a 1 by 3 array of numbers in the range 0-1, for example:hiso = patch(isosurface(Ds,5),'FaceColor',[0.5 0.5 0.5],'EdgeColor','none'); Related SolutionsMATLAB: Create a specular colormap figure; imagesc( rand(100) - 0.5 ); % Random data centred on 0baseCmap = hot( 256 );cmap = [ flip( baseCmap(2:end,:) ); baseCmap ];colormap( cmap )caxis( [-0.5 0.5] ) MATLAB: Increase RGB image saturation. This is easier in HSV colorspace:RGB = rand(100, 100, 3);HSV = rgb2hsv(RGB);% "20% more" saturation:HSV(:, :, 2) = HSV(:, :, 2) * 1.2;% or add:% HSV(:, :, 2) = HSV(:, :, 2) + 0.2;HSV(HSV > 1) = 1; % Limit valuesRGB = hsv2rgb(HSV); Related QuestionHow to create a white imageChange ColorColor identifyColor contour
Best Answer