问题描述:
Matlab计算Index exceeds matrix dimensions.为什么?
[w,y]=meshgrid(linspace(0,1),linspace(20,100));
h=25;
Ta=37;
Q=420;
p=1000;
c=4200;
wb=0.0005;
k=0.5;
Tf=35;
Tc=37;
L=0.071;
phi=0.1;
y=16.7*h*(k*(wb*p*c/k)^0.5*coth(L*(wb*p*c/k)^0.5)+h+0.256*(3.054+16.7*h*w))^(-2)*(-(0.256*(Ta+Q/(p*c*w))...
-3.37-phi*(-25.6+0.095*(Tf+273)))*(k*(wb*p*c/k)^0.5*coth(L*(k*(wb*p*c/k)^0.5)+h))...
-0.256*h*(Tf-Ta-Q/(p*c*w))-0.256*exp(-L*(k*(wb*p*c/k)^0.5)*(Tc-Ta-Q/(p*c*w))*(k*(wb*p*c/k)...
^0.5*coth(L*(k*(wb*p*c/k)^0.5)+k(wb*p*c/k)^0.5))));
plot(w,y,'rs')
[w,y]=meshgrid(linspace(0,1),linspace(20,100));
h=25;
Ta=37;
Q=420;
p=1000;
c=4200;
wb=0.0005;
k=0.5;
Tf=35;
Tc=37;
L=0.071;
phi=0.1;
y=16.7*h*(k*(wb*p*c/k)^0.5*coth(L*(wb*p*c/k)^0.5)+h+0.256*(3.054+16.7*h*w))^(-2)*(-(0.256*(Ta+Q/(p*c*w))...
-3.37-phi*(-25.6+0.095*(Tf+273)))*(k*(wb*p*c/k)^0.5*coth(L*(k*(wb*p*c/k)^0.5)+h))...
-0.256*h*(Tf-Ta-Q/(p*c*w))-0.256*exp(-L*(k*(wb*p*c/k)^0.5)*(Tc-Ta-Q/(p*c*w))*(k*(wb*p*c/k)...
^0.5*coth(L*(k*(wb*p*c/k)^0.5)+k(wb*p*c/k)^0.5))));
plot(w,y,'rs')
问题解答:
我来补答展开全文阅读