number of elements in B and I must be the same?

1 visualización (últimos 30 días)
Kevin
Kevin el 21 de Jul. de 2014
Editada: Matt J el 21 de Jul. de 2014
Hi,
For the following line of code:
for i=1:length(C_T)
if C_T(i) > 0.96;
axial_induction(i) = 1 ./ (((4.*F.*cos(relative_wind)) ./ (sigma.*Cl))-1);
else
axial_induction(i) = 1 ./ (1+(4.*F.*(sin(relative_wind)^2)) ./ (sigma.*Cl*cos(relative_wind)));
end;
end;
I am getting the following error:
In an assignment A(I) = B, the number of elements in B and I must be the same.
Error in BEM (line 79) axial_induction(i) = 1 ./ (((4.*F.*cos(relative_wind)) ./ (sigma.*Cl))-1);
I am trying to calculate 'axial_induction' at various points along a blade section and the equation which I use depends on the 'C_T' value. Could anyone please help me with this?

Respuesta aceptada

Matt J
Matt J el 21 de Jul. de 2014
Editada: Matt J el 21 de Jul. de 2014
It means (in this case) that the right hand side of
axial_induction(i) = 1 ./ (((4.*F.*cos(relative_wind)) ./ (sigma.*Cl))-1);
is not scalar-valued.

Más respuestas (0)

Categorías

Más información sobre Mathematics 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