题目:用MATLAB绘制二维井位图和三维井位图
板块:MATLAB
内容:
% 用MATLAB绘制,画二维井位图和三维井位图;
% nepu liw 2017年9月3日
%-------------------------------------------------------------------
clc;
clear;
close all;
%-------------------------------------------------------------------
tic %1
% well_location=30*abs(randn(10,3));
well_location=load('welllocation.txt');
disp(well_location);
max_lct=max(well_location); %获得井位坐标最大值和井深最大值
deepmax=max_lct(3); %获取深度最大值
[m_lct,n_lct]=size(well_location); %获得n*m;
toc %1
% x_picture=500*(1+fix(max_lct(1)/500)); %给出绘图边界x
% y_picture=500*(1+fix(max_lct(2)/500)); %给出绘图边界y
% z_picture=500*(1+fix(max_lct(3)/500)); %给出绘图边界y
%-----------------------井位显示---------------------------------
subplot(1,2,1);
tic %2
for i=1:m_lct
hold on;
plot(well_location(i,1),well_location(i,2),'color','r','marker','.','markersize',20); %绘
用MATLAB绘制二维井位图和三维井位图
最新推荐文章于 2023-06-06 17:33:14 发布