Funcion en Scilab
Publicado por CaroMedina (3 intervenciones) el 19/10/2012 16:26:05
Buenas, la verdad soy nueva programando en Scilab y me equivoco mucho, tengo una función que deseo implementar para varios ciclos. Y la estoy implementando de esta manera:
// Primera suposicion
Tg=(Tamb+1)+273
Tw1=(Tamb)+273
Tpr1=(Tamb)+273
Twe1=(Tamb)+273
n=72 //// numero de ciclos
Tgases=zeros(1,n)
Tpared=zeros(1,n)
Tproductos=zeros(1,n)
Tparedext=zeros(1,n)
for i=1
Tgases(i)=Tg
Tpared(i)=Tw1
Tproductos(i)=Tpr1
Tparedext(i)=Twe1
end
final=n-1
for (i=1:final)
[mout,Qwall,Qware,Tpared(i+1),Tgases(i+1),Tproductos(i+1),Tparedext(i+1)]=Horno(Tamb,ex,Tgases(i),Tpared(i),Tproductos(i),Tparedext(i),rinho,rexho,Pminh,Pmexho,transvHo,DhHo,Aiho,Aexho,Lho,Apro,Apurt,espurt,Dab,DiamInt,CARB,Kprta,Kho,ewall,eprd,efwo,gra)
end
pero al ejecutar el programa me sale el siguiente error
!--error 144
Undefined operation for the given operands.
check or define function %s_2_s for overloading.
at line 28 of function interpln called by :
at line 9 of function PropGas called by :
at line 11 of function Horno called by :
,ewall,eprd,efwo,gra
at line 939 of exec file called by :
ación\TODO.sce', -1
y pues no se a que se debe
// Primera suposicion
Tg=(Tamb+1)+273
Tw1=(Tamb)+273
Tpr1=(Tamb)+273
Twe1=(Tamb)+273
n=72 //// numero de ciclos
Tgases=zeros(1,n)
Tpared=zeros(1,n)
Tproductos=zeros(1,n)
Tparedext=zeros(1,n)
for i=1
Tgases(i)=Tg
Tpared(i)=Tw1
Tproductos(i)=Tpr1
Tparedext(i)=Twe1
end
final=n-1
for (i=1:final)
[mout,Qwall,Qware,Tpared(i+1),Tgases(i+1),Tproductos(i+1),Tparedext(i+1)]=Horno(Tamb,ex,Tgases(i),Tpared(i),Tproductos(i),Tparedext(i),rinho,rexho,Pminh,Pmexho,transvHo,DhHo,Aiho,Aexho,Lho,Apro,Apurt,espurt,Dab,DiamInt,CARB,Kprta,Kho,ewall,eprd,efwo,gra)
end
pero al ejecutar el programa me sale el siguiente error
!--error 144
Undefined operation for the given operands.
check or define function %s_2_s for overloading.
at line 28 of function interpln called by :
at line 9 of function PropGas called by :
at line 11 of function Horno called by :
,ewall,eprd,efwo,gra
at line 939 of exec file called by :
ación\TODO.sce', -1
y pues no se a que se debe
Valora esta pregunta


0