Navigation

Operators and Keywords

Function List:

C++ API

test_switch.m File Reference


Functions

id a ()
endswitch !assert (x==c &&y==a &&z==b &&p==c)
!case b !x (k)
!endfor !assert (all(x==[3, 1, 2, 3]))
!endfor !assert (all(x==[0, 1, 0, 0]))
"switch endswitcheval ()

Variables

 !b = 2
 !c = 3
!switch case x = a
endswitch!switch case y = a
endswitch!switch case z = a
endswitch!switch case p = a
 !x = zeros (1, 4)
 !k = 1
!for i

Function Documentation

! endfor !assert ( all(x==[0, 1, 0, 0])   ) 

! endfor !assert ( all(x==[3, 1, 2, 3])   ) 

endswitch !assert ( = =c &&y==a &&z==b &&p==c  ) 

! case b !x ( k   ) 

id a (  )  [virtual]

"switch endswitch" eval (  )  [virtual]


Variable Documentation

!b = 2

!c = 3

!k = 1

!x = zeros (1, 4)

! for i

Initial value:

 0:3
%! switch (i)
%! case a
%! x(k) = a

otherwise p = a

otherwise x = a

otherwise y = a

otherwise z = a