If loop 3 condition
Ältere Kommentare anzeigen
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 Kommentare
Walter Roberson
am 1 Apr. 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
am 1 Apr. 2019
Walter Roberson
am 1 Apr. 2019
I still need the value for H in order to run the code.
Antworten (0)
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!