Write a Matlab program which gives the same output as the following program but only contains if statements
조회 수: 3 (최근 30일)
이전 댓글 표시
a = rand
if a < .3
’a < .3’
elseif a<.6
’.3 <= a <.6’
else
’a > 6’
end;
댓글 수: 2
the cyclist
2015년 7월 4일
if (you show some effort)
if (you post some code)
we might help you with some hints
end
end
dpb
2015년 7월 4일
Why would you want to do that (unless it's a homework assignment in which case we've got to see an attempt first....)???
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!