If loop 3 condition
Afficher commentaires plus anciens
z=zeros(1,N);
h=z;
for ii=1:N
z(ii)=(ii- 0.5)*H;
if z(ii)>L1 && z(ii)<(L1+LL)
h(ii)=z(ii)-L1;
elseif z(ii)>(L1+LL)
h(ii)=LL;
else
h(ii)=0;
end
end
3 commentaires
Walter Roberson
le 1 Avr 2019
What difficulty are you encountering?
What is the code intended to do?
To test we would need values for H, L1, and LL
Shaban Akhtar
le 1 Avr 2019
Walter Roberson
le 1 Avr 2019
I still need the value for H in order to run the code.
Réponses (0)
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!