MATLAB程序:x=-1:0.1:1; [x y] = meshgrid(x); %grid data = load("filename.txt"); figure mesh(x,y,data) %三维图 view([90,90]) %三维图的俯视图得到相应的二维图三维图二维图