主题:MATLAB改错
function Q = energywastingmold(Mz,v,tau,D,k)
int n;int M(k);int V(k);int T(k); int DI(k); int QK(k);
M = Mz ;V = v;T = tau; DI = D ;
Q = 0;
for n = 1:k ;
QK(n)=M(n)*V(n)*T(n)/DI(n);
Q = Q+QK(n) ;
end
执行后提示:
>> Mz=[1,2,3],v=[1,2,3],tau=[1,2,3],D=[1,2,3]
Mz =
1 2 3
v =
1 2 3
tau =
1 2 3
D =
1 2 3
>> Q=energywastingmold(Mz,v,tau,D,3)
Warning: Explicit integral could not be found.
> In sym.int at 58
In char.int at 9
In energywastingmold at 2
Warning: Explicit integral could not be found.
> In sym.int at 58
In char.int at 9
In energywastingmold at 2
Warning: Explicit integral could not be found.
> In sym.int at 58
In char.int at 9
In energywastingmold at 2
Warning: Explicit integral could not be found.
> In sym.int at 58
In char.int at 9
In energywastingmold at 2
Warning: Explicit integral could not be found.
> In sym.int at 58
In char.int at 9
In energywastingmold at 2
哪位高手帮我改一下这个程序!谢谢啦!!!
int n;int M(k);int V(k);int T(k); int DI(k); int QK(k);
M = Mz ;V = v;T = tau; DI = D ;
Q = 0;
for n = 1:k ;
QK(n)=M(n)*V(n)*T(n)/DI(n);
Q = Q+QK(n) ;
end
执行后提示:
>> Mz=[1,2,3],v=[1,2,3],tau=[1,2,3],D=[1,2,3]
Mz =
1 2 3
v =
1 2 3
tau =
1 2 3
D =
1 2 3
>> Q=energywastingmold(Mz,v,tau,D,3)
Warning: Explicit integral could not be found.
> In sym.int at 58
In char.int at 9
In energywastingmold at 2
Warning: Explicit integral could not be found.
> In sym.int at 58
In char.int at 9
In energywastingmold at 2
Warning: Explicit integral could not be found.
> In sym.int at 58
In char.int at 9
In energywastingmold at 2
Warning: Explicit integral could not be found.
> In sym.int at 58
In char.int at 9
In energywastingmold at 2
Warning: Explicit integral could not be found.
> In sym.int at 58
In char.int at 9
In energywastingmold at 2
哪位高手帮我改一下这个程序!谢谢啦!!!