Switch case inside of another switch case
조회 수: 31 (최근 30일)
이전 댓글 표시
How can i put a switch case inside of another switch case?
댓글 수: 0
답변 (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
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!