题目:用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); %绘制井位
strwell=strcat('井位',int2str(i));
text(well_location(i,1)+10,well_location(i,2)+10,strwell)
end
% axis([0 x_picture 0 y_picture
用MATLAB绘制二维井位图和三维井位图
最新推荐文章于 2026-05-31 02:00:00 发布
本文介绍了如何使用MATLAB进行二维和三维井位图的绘制,详细讲解了计算图例的方法,由作者LiW分享。


1079

被折叠的 条评论
为什么被折叠?



