Hi, so I'm trying to specify the Xticklable and Yticklable on a contourf. Unfortunately when I give the vector that I want to see, matlab repeat those lables on the axes. This is the code I'm using:
vec=[-180 -36 0 36 180] for i=1:3 figure(1)subplot(1,3,i)if i==1contourf(nzro_mean1)elseif i==2 contourf(nzro_mean2)elseif i==3 contourf(nzro_mean3)endaxis squareset(gca,'XTickLabel',{vec})set(gca,'YTickLabel',{vec})title(['Especie ',num2str(i)])colorbar('southoutside') end
and the images below is how appers. Does anybody knows what is happening and how can I solve this? note: nzro_mean1, 2 and 3 is a matrix 5×5
Best Answer