フィルターのクリア

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);
  1 件のコメント
mazen ali
mazen ali 2017 年 9 月 13 日
Yes, I think you should rename your m-file ... don't use the name saturation. Mazen

サインインしてコメントする。

採用された回答

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 Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by