Assignment has more non-singleton rhs dimensions than non-singleton subscripts

1 visualización (últimos 30 días)
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"

Respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by