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 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by