Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Ads

Discussion Groups

Discussion Groups | Matlab DSP | interpolating colors using the patch command

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

interpolating colors using the patch command - Ryan - May 15 10:59:53 2008



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


(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )