필터 지우기
필터 지우기

Switch case inside of another switch case

조회 수: 34 (최근 30일)
António
António 2014년 12월 30일
편집: Jan 2014년 12월 30일
How can i put a switch case inside of another switch case?

답변 (1개)

Sean de Wolski
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
Jan
Jan 2014년 12월 30일
편집: Jan 2014년 12월 30일
+1. A complete answer although it is trivial.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by