How can i remove colormap or shading?

xlin2 = linspace(min(vec_xypro(:,1)),max(vec_xypro(:,1)),200);
ylin2 = linspace(min(vec_xypro(:,2)),max(vec_xypro(:,2)),200);
[X,Y]=meshgrid(xlin2,ylin2);
f=scatteredInterpolant(vec_xypro(:,1),vec_xypro(:,2),vec_xypro(:,3));
Z=f(X,Y);
pcolor(X,Y,Z)
colormap('jet')
shading interp
colorbar
caxis([min(vec_xypro(:,3)),max(vec_xypro(:,3))]);

1 Comment

That code act like this. The upper one was draw first and the lowest one is last one. How can i remove former ones?

Sign in to comment.

 Accepted Answer

darova
darova on 8 Mar 2021
try cla before pcolor

More Answers (0)

Products

Asked:

on 8 Mar 2021

Commented:

on 18 Mar 2021

Community Treasure Hunt

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

Start Hunting!