i can't run this program , the output is (Saturation: LinearInterval: [NaN NaN]), i don't know the meaning of the ouput

2 次查看(过去 30 天)
%water saturation calculation
Q=input('porosity of formation=');
Rw=input('water resistivity=');
Rt=input('true resistivity=');
x=input('type of formation=');
if x==sandformation
f=.62/Q^2.15;
elseif x==compactedformation
f=1/Q^2;
elseif x==chalkyformation
f=1/Q^2.2;
end
Ro=f*Rw;
s=sqrt(Ro/Rw);
sw=s*100;
disp(sw);

采纳的回答

Andrei Bobrov
Andrei Bobrov 2013-4-4
x=input('type of formation=','s');
switch x
case 'sandformation'
f=.62/Q^2.15;
case 'compactedformation'
f=1/Q^2;
otherwise % or case 'chalkyformation'
f=1/Q^2.2;
end

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Point Cloud Processing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by