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

조회 수: 1 (최근 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
  댓글 수: 2
mohamed
mohamed 2013년 4월 4일
thank you it works correctly now, but i want to know the function of 's' inside the input function
Andrei Bobrov
Andrei Bobrov 2013년 4월 4일
Please, read about function input from MATLAB Documentation Center

댓글을 달려면 로그인하십시오.

추가 답변 (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