Patching surfaces with diffferent colors of your choice

I want two patch two surfaces with two different colors such as:
[0.9 0.9 0.8]
and
[1 0.9 0.6]
I use the command
patch('Faces',faces,'Vertices',verts,'Facecolor',[0.9 0.9 0.8])
But I don't know what to do to patch two different faces with two different colors. How can I do that?

Answers (1)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!