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

1 vue (au cours des 30 derniers jours)
Kevin
Kevin le 21 Juil 2014
Modifié(e) : Matt J le 21 Juil 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?

Réponse acceptée

Matt J
Matt J le 21 Juil 2014
Modifié(e) : Matt J le 21 Juil 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.

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by