数据处理过后想要画出一张pcolor,但出现了错误如图所示,想请问大家该如何解决,请各位指点迷津,拜托了
NX=X-midT(1,1);
NXY=[];
for i=1:length(NX)
if NX(i)<0
NY=max(Q(:,4))/2-Q(i,4)/0.004;
else
NY=max(Q(:,4))/2+Q(i,4)/0.004;
end
NXY(i,1)=NX(i);
NXY(i,2)=NY;
NXY(i,3)=pc.Intensity(i);
end
%画图
nxz=uint8(NXY);
pcolor(nxz(:,1),nxz(:,2),nxz(:,3));
https://i.imgur.com/Y50r2Vo.jpg