nested IF-ELSE statement
조회 수: 1 (최근 30일)
이전 댓글 표시
Please help me solving this matlab code. Thats how the answer should look like:-
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/360262/image.png)
채택된 답변
Image Analyst
2020년 9월 14일
Hint: input(), rem(), sprintf(), while
message = sprintf('>>>>> Enter an integer (0-9)\n blah blah fubar snafu lorem ipsum : ');
Change message passed to input depending on what their input was.
response = '0';
message = sprintf(.....
while response ~= 'x'
response = input(...........
if................
message = ...........
elseif ...........
end
end
See if you can finish it.
댓글 수: 5
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!