Technical discussion about Matlab and issues related to Digital Signal Processing.
I am using MATLAB to create a scene generation program to simulate a
missile flight. I am having difficulties interpolating colors using
the patch command. This is what I currently have
for k=1:length(basex)-1
polygon=patch([basex_s(k) basex_s(k+1) tip_s(1)],[basey_s(k)
basey_s(k+1) tip_s(2)],[basez_s(k) basez_s(k+1) tip_s(3)],[1 0 0]);
end
which plots the target as a red cone. What I would like to do is
specify a color for each vertex and have Matlab interpolate the colors
for each face. Any help would be greatly appreciated.
Ryan