clc;clear;close all;
%load data
data= xlsread('Equal T0 constructional drawing of J-UNCONFORMITY.xlsx');
x = data(:,1)
xmax = max(x);
xmin = min(x);
y = data(:,2)
ymax = max(y);
ymin = min(y);
z = data(:,3);
N = 45;
[X,Y] = meshgrid(linspace(xmin,xmax,N),linspace(ymin,ymax,N));
Z = griddata(x,y,z,X,Y,'v4');
%Equal T0 constructional image of J-UNCONFORMITY(2D)
figure(1)
contourf(X,Y,Z,N, 'LineColor','none');
title('Equal T0 constructional image of J-UNCONFORMITY(2D)');
colormap('JET');
xlabel('LINE')
ylabel('CDP')
colorbar;
%Equal T0 constructional image of J-UNCONFORMITY(3D)
figure(2)
mesh(X,Y,Z)
title('Equal T0 constructional image of J-UNCONFORMITY(3D)')
colormap('JET');
xlabel('LINE')
ylabel('CDP')
zlabel('T0')
set (gca,'ZDir','reverse')
colorbar;
Figure1
Figure2 文章来源:https://www.toymoban.com/news/detail-541290.html
文章来源地址https://www.toymoban.com/news/detail-541290.html
到了这里,关于Matlab画二维、三维等T0构造图(或称为等高线图)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!