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

1 次查看(过去 30 天)
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?

采纳的回答

Matt J
Matt J 2014-7-21
编辑:Matt J 2014-7-21
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.

更多回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by