当前位置: > Assignment has more non-singleton rhs dimensions than non-singleton subscripts...
题目
Assignment has more non-singleton rhs dimensions than non-singleton subscripts
Ly = 51; Lx = 501; t = ones(1,8)*alpha/(2*pi);IIn = ones(8,Lx,Ly);
IEq (i,:,:) = IEq(i,:,:)+ reshape(t*reshape(IIn,8,Lx*Ly),1,Lx,Ly);
Error in ==> radiation at 66
IEq (i,:,:) = IEq(i,:,:)+ reshape(t.*reshape(IIn,8,lx*ly),1,lx,ly); % equilibrinm PDFs

提问时间:2020-11-17

答案
Ly = 51;
Lx = 501;
alpha=8;
t = ones(1,8)*alpha/(2*pi);
IIn = ones(8,Lx,Ly);
IEq=zeros(10,501,51);
for i=1:1
IEq(1,:,:)=IEq(1,:,:)+reshape(t*reshape(IIn,8,Lx*Ly),1,Lx,Ly);
end
IEq
运行后,不知是否是您想要的结果?
没有出现您所说的那个问题.
分分分,哈哈
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.