【发布时间】:2012-11-21 11:42:32
【问题描述】:
我正在尝试使用 t,x,l 变量绘制此代码...
我收到此错误“使用 ./ 时出错 矩阵尺寸必须一致。
Uentitled5 中的错误(第 16 行) a=cos(Lambda1.*(x./L));"
t=1:0.5:300;
x=0:0.1:100;
L=0:0.3:100;
Bi=0.01;
A1=1.0017
Lambda1=0.0998
a=cos(Lambda1.*(x./L));
theta=(A1.*exp(-(Lambda1.^2).*t).*a);
for i=t
plot(t,theta,'-')
for j=x
plot (x,theta,'-','green')
end
for k=L
plot (L,theta,'-','red')
end
end
title('Dimensionless Temperature for Plane Wall ')
xlim([0 2])
ylim([0 350])
xlabel('\Theta(0)')
ylabel('t(Time in Seconds)')
【问题讨论】:
-
你有 2 个向量,一个有 1001 个元素,另一个有 334 个元素。你建议这两个的元素划分应该如何工作?
标签: matlab