Switch case inside of another switch case
이전 댓글 표시
How can i put a switch case inside of another switch case?
답변 (1개)
Sean de Wolski
2014년 12월 30일
x = 2;
y = 3;
switch x
case 1
disp 1
case 2
switch y
case 2
disp Ha!
case 3
disp HaHa!
otherwise
disp Nah
end
end
댓글 수: 1
카테고리
도움말 센터 및 File Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!