Prev: Householder QR Factorization (storing vector results)
Next: Matlab nested function access from Simulink
From: Rajkumar R on 9 Apr 2010 09:30 Hi All, Got a query with contourf. Below is the part of my code. say, I need to plot contourf with a value of ZI 0 to 1. I need it to be 5 contours from 0 to 0.2, 0.2 to 0.4 ..... 0.8 to 1. So whats the value in V i need to give. I tried some combinations, but it didnt work with the colors which i have given in colormap. V=[....]; [C,h]=contourf(XI,YI,ZI,V,'LineWidth',2); .. .. colormap([1,1,1;1/5*1 1-1/5 1;2/5 1-2/5 1; 3/5 1-3/5 1; 4/5 1-4/5 1;]); Regards |