From: Philip on
my code is:

grid=smooth3(grid);
patch(isosurface(double(grid)), 'MarkerFaceColor','red');
caxis ([0 1])
axis tight
view(3)
camlight
lighting GOURAUD

where grid is a 1 and 0 matrix. I want 1 to be red and 0 to be blue. With the current code 1 is black and 0 is empty white.

Thanks