how to fill colors between contours in matlab -
i have plotted multiple contours in matlab hold on command, using contour function of matlab. how can go ahead if want fill color between first , last contour. tried contourf function didnt work out way.
thanks in advance.
i have written 2 simple lines plots 0 level set contour after every iterations.
hold on; contour(x,y,phi,[0,0],'r');
this can done using get
command individual components graph. example:
[x, y, z] = peaks; % generate data figure; surf(x, y, z); % show figure;[c, h] = contourf(x, y, z, [0 0]); % build , show contour plot patches = get(h, 'children'); % different patches set(patches(1), 'facecolor', 'r') % colour 1 red
Comments
Post a Comment