If loop 3 condition
이전 댓글 표시
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
Walter Roberson
2019년 4월 1일
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
2019년 4월 1일
Walter Roberson
2019년 4월 1일
I still need the value for H in order to run the code.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!