You are on page 1of 2

Title page

MATLAB Script
clc, clearvars, closeall

% Import data
load('Well.txt')

% Define variables for each column


Depth_Index = Well(:,1);
Sonic = Well(:,2);
Gamma_Ray = Well(:,3);
Neutron_Porosity = Well(:,4);
Density = Well(:,5);
Sonic_Potential = Well(:,6);

% Compute parameters
Vp = abs(sqrt((Neutron_Porosity + 2*Sonic./Gamma_Ray)./Density));
Vs = abs(sqrt((Sonic./Gamma_Ray)./Density));
P_imp = Density.*Vs;
poisson_ratio = (Vp.^2 -2*Vs.^2)./(2*(Vp.^2 - Vs.^2));

% Plot well logging parameters


figure;
subplot(1,4,1)
plot(Vp, Depth_Index, Vs, Depth_Index)
axis([-1 2.5 2600 2700])
title('Vp vs Vs')
ylabel('Depth [m]')
legend('Vp', 'Vs')
grid on

subplot(1,4,2)
plot(Density, Depth_Index, P_imp, Depth_Index)
axis([-5 60 2600 2700])
title('P-impedance vs Density')
ylabel('Depth [m]')
legend('Density', 'P-impedance')

You might also like