给三维矢量图按照不同高度设置箭头颜色
figure
clf
X = surfaceuz(:,1);
Y = surfaceuz(:,2);
Z = surfaceuz(:,3);
hold on
zcolor = jet;
% q=quiver3(X,Y,Z,X,Y,W)
for i = 1:length(surfaceuz)
quiver3(X(i),Y(i),Z(i),X(i),Y(i), Z(i),...
'Color',zcolor(floor((Z(i) - -0.1) * 255 / 0.35) + 1, :), ...
'AutoScale', 'off')
end