Assignment has more non-singleton rhs dimensions than non-singleton subscripts
1 次查看(过去 30 天)
显示 更早的评论
Reh=zeros(length (Dd),N1);
Rec=zeros(length (Dd),N1);
for i=1:1:N1
for j=1:1:length(Dd)
Reh(j,i)=(dh(i)*vh*Dh(j))/uh(i);
Rec(j,i)=(dc(i)*vc*Dc(j))/uc(i);
end
end
There are two variable. I think I missed to properly initialised the Rec and Reh matrix.
Could you please help me to know how to initialized matrix.
Its showing error" Assignment has more non-singleton rhs dimensions than non-singleton subscripts"
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!