surf(x,y,z); % 生成格网图NDVI_16d_3D_test=[0.346800000000000,0.427500000000000,0.349700000000000,0.340000000000000,0.251500000000000,0.334000000000000,0.388600000000000,0.455200000000000,0.450800000000000,0.528100000000000,0.484200000000000,0.471200000000000,0.490600000000000,0.181600000000000,0.453900000000000,0.149400000000000,0.489600000000000,0.460200000000000,0.542300000000000,0.567500000000000;0.348600000000000,0.395800000000000,0.330400000000000,0.278300000000000,0.400300000000000,0.364100000000000,0.366600000000000,0.329700000000000,0.0749000000000000,0.283000000000000,0.394400000000000,0.758600000000000,0.620900000000000,0.427600000000000,0.358000000000000,0.324600000000000,0.408000000000000,0.561100000000000,0.525900000000000,0.594000000000000;0.0707000000000000,0.334200000000000,0.317400000000000,0.265500000000000,0.287500000000000,0.280000000000000,0.252000000000000,0.290300000000000,0.0668000000000000,0.0496000000000000,0.0911000000000000,0.280500000000000,0.303000000000000,0.295300000000000,0.316000000000000,0.350800000000000,0.297200000000000,0.297900000000000,0.441000000000000,0.367600000000000;0.278000000000000,0.257700000000000,0.269200000000000,0.0380000000000000,0.0868000000000000,0.0736000000000000,0.280800000000000,0.250600000000000,0.0529000000000000,0.239800000000000,0.0777000000000000,0.233400000000000,0.293500000000000,0.221300000000000,0.0829000000000000,0.259500000000000,0.294300000000000,0.262600000000000,0.273300000000000,0.314000000000000;0.0522000000000000,0.259600000000000,0.221800000000000,0.0355000000000000,0.0531000000000000,0.0798000000000000,0.0597000000000000,0.253000000000000,0.0682000000000000,0.0680000000000000,0.0564000000000000,0.238800000000000,0.0563000000000000,0.0763000000000000,0.0736000000000000,0.0782000000000000,0.249400000000000,0.259300000000000,0.259100000000000,0.305000000000000;0.0728000000000000,0.249200000000000,0.415800000000000,0.0301000000000000,0.0653000000000000,0.0523000000000000,0.0276000000000000,0.409900000000000,0.0404000000000000,0.0352000000000000,0.0634000000000000,0.113500000000000,0.0628000000000000,0.384000000000000,0.0672000000000000,0.0716000000000000,0.351900000000000,0.399100000000000,0.0398000000000000,0.0813000000000000;0.0803000000000000,0.343000000000000,0.398200000000000,0.00630000000000000,0.298000000000000,0.0797000000000000,0.393900000000000,0.358500000000000,0.0512000000000000,0.270900000000000,0.325500000000000,0.344900000000000,0.0583000000000000,0.407700000000000,0.375700000000000,0.287500000000000,0.410100000000000,0.398400000000000,0.374200000000000,0.402100000000000;0.412300000000000,0.400100000000000,0.385600000000000,0.269600000000000,0.392900000000000,0.398500000000000,0.395300000000000,0.416300000000000,0.307700000000000,0.400800000000000,0.398300000000000,0.383900000000000,0.349800000000000,0.481800000000000,0.432000000000000,0.396200000000000,0.433200000000000,0.416400000000000,0.418900000000000,0.381000000000000;0.381900000000000,0.572500000000000,0.485200000000000,0.404700000000000,0.409800000000000,0.413400000000000,0.590300000000000,0.408700000000000,0.409200000000000,0.647700000000000,0.432500000000000,0.608900000000000,0.737900000000000,0.772100000000000,0.453400000000000,0.494300000000000,0.449600000000000,0.496400000000000,0.558200000000000,0.576600000000000;0.814400000000000,0.813000000000000,0.667000000000000,0.776900000000000,0.649700000000000,0.825100000000000,0.795500000000000,0.764500000000000,0.770800000000000,0.777400000000000,0.816400000000000,0.745300000000000,0.806300000000000,0.827400000000000,0.695800000000000,0.820500000000000,0.765400000000000,0.825000000000000,0.856400000000000,0.754900000000000;0.858100000000000,0.846000000000000,0.809300000000000,0.803300000000000,0.871600000000000,0.871200000000000,0.857400000000000,0.821400000000000,0.830700000000000,0.880200000000000,0.847200000000000,0.868500000000000,0.869300000000000,0.826200000000000,0.868000000000000,0.871900000000000,0.866200000000000,0.866300000000000,0.865900000000000,0.862800000000000;0.869200000000000,0.865400000000000,0.824000000000000,0.860700000000000,0.880700000000000,0.858900000000000,0.873800000000000,0.845600000000000,0.858300000000000,0.861700000000000,0.863000000000000,0.878800000000000,0.875300000000000,0.845500000000000,0.891000000000000,0.899500000000000,0.903700000000000,0.830400000000000,0.892100000000000,0.887100000000000;0.889500000000000,0.864400000000000,0.854800000000000,0.866800000000000,0.865900000000000,0.854900000000000,0.879900000000000,0.860200000000000,0.843300000000000,0.852400000000000,0.891000000000000,0.876000000000000,0.875800000000000,0.867300000000000,0.889900000000000,0.893400000000000,0.897000000000000,0.883500000000000,0.779400000000000,0.900000000000000;0.896300000000000,0.860700000000000,0.834500000000000,0.850900000000000,0.882500000000000,0.871500000000000,0.865300000000000,0.838800000000000,0.852000000000000,0.785200000000000,0.719200000000000,0.862200000000000,0.350800000000000,0.844100000000000,0.887000000000000,0.889200000000000,0.883600000000000,0.877600000000000,0.864100000000000,0.874100000000000;0.853600000000000,0.836200000000000,0.808300000000000,0.866200000000000,0.867700000000000,0.837400000000000,0.846400000000000,0.843400000000000,0.738000000000000,0.842300000000000,0.866900000000000,0.803600000000000,0.846400000000000,0.824700000000000,0.867200000000000,0.884500000000000,0.872800000000000,0.818100000000000,0.853300000000000,0.881200000000000;0.847600000000000,0.829600000000000,0.790200000000000,0.857600000000000,0.832200000000000,0.818600000000000,0.846200000000000,0.792800000000000,0.799300000000000,0.803100000000000,0.835500000000000,0.818500000000000,0.771500000000000,0.816800000000000,0.858000000000000,0.858100000000000,0.849000000000000,0.833900000000000,0.825700000000000,0.857100000000000;0.755700000000000,0.612300000000000,0.610600000000000,0.613800000000000,0.640000000000000,0.497800000000000,0.541000000000000,0.677100000000000,0.642200000000000,0.716000000000000,0.578000000000000,0.480000000000000,0.703500000000000,0.604600000000000,0.726200000000000,0.753200000000000,0.648300000000000,0.649700000000000,0.712700000000000,0.611400000000000;0.441900000000000,0.429700000000000,0.394100000000000,0.456600000000000,0.458900000000000,0.397700000000000,0.388000000000000,0.405000000000000,0.435000000000000,0.400000000000000,0.410400000000000,0.456200000000000,0.422900000000000,0.487800000000000,0.461100000000000,0.393800000000000,0.445200000000000,0.416600000000000,0.377900000000000,0.433700000000000;0.399400000000000,0.421900000000000,0.221000000000000,0.426700000000000,0.446100000000000,0.415200000000000,0.402200000000000,0.382000000000000,0.403900000000000,0.0892000000000000,0.432100000000000,0.235800000000000,0.440400000000000,0.334500000000000,0.425700000000000,0.307800000000000,0.396200000000000,0.458500000000000,0.428100000000000,0.309800000000000;0.415600000000000,0.354300000000000,0.288900000000000,0.347500000000000,0.436600000000000,0.0978000000000000,0.420400000000000,0.0826000000000000,0.346900000000000,0.291200000000000,0.341600000000000,0.291500000000000,0.456000000000000,0.442200000000000,0.429500000000000,0.377300000000000,0.467800000000000,0.347300000000000,0.366900000000000,0.430900000000000;0.398300000000000,0.407900000000000,0.321200000000000,0.329600000000000,0.376700000000000,0.332300000000000,0.374000000000000,0.0803000000000000,0.410400000000000,0.105900000000000,0.475400000000000,0.464400000000000,0.420100000000000,0.182300000000000,0.446500000000000,0.391200000000000,0.407600000000000,0.409900000000000,0.601800000000000,0.553300000000000;0.445400000000000,0.362900000000000,0.0482000000000000,0.731100000000000,0.479100000000000,0.337700000000000,0.122700000000000,0.0241000000000000,0.639700000000000,0.0511000000000000,0.407800000000000,0.0714000000000000,0.138400000000000,0.0804000000000000,0.198300000000000,0.669900000000000,0.557800000000000,0.105700000000000,0.139200000000000,0.168200000000000;0.224700000000000,0.172100000000000,0.0579000000000000,0.00770000000000000,0.167200000000000,0.0290000000000000,0.0499000000000000,0.0386000000000000,0.0227000000000000,0.0410000000000000,0.0833000000000000,0.139800000000000,0.0938000000000000,0.150900000000000,0.101500000000000,0.0987000000000000,0.155900000000000,0.147700000000000,0.136600000000000,0.123000000000000];
x = 2001:1:2020;
y = 1:16:353;
[X,Y] = meshgrid(x,y); % 生成格网
figure;
% mesh(x,y,NDVI_16d_3D_test);
surf(x,y,NDVI_16d_3D_test);
axis([2000 2021 0 366 0 1]);
title('Original NDVI, 16d, 20 years');
% colormap summer %cool是一种配色方案,还有其他方案如winter,summer····见help colormap
colormap(flipud(summer)) % flipud 颜色取反
colorbar