Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
%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);

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 4 de Abr. de 2013
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 comentarios
mohamed
mohamed el 4 de Abr. de 2013
thank you it works correctly now, but i want to know the function of 's' inside the input function

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Type Conversion en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by