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

1 view (last 30 days)
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?

Accepted Answer

Matt J
Matt J on 21 Jul 2014
Edited: Matt J on 21 Jul 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.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!