help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Variables in Switch Case


From: Mech.Mon
Subject: Variables in Switch Case
Date: Mon, 2 Apr 2012 09:04:25 -0700 (PDT)

Hello,

In C++ I can do ;

switch (value)
{   
case Value1:  
{
  int Value1 = 10525;  
  break;
}
case Value2:  
  int Value1 = 55874;  
break;
}

Is there a way to assign variables, inside a switch statement, in Octave?


-----
******
And AC said, "LET THERE BE LIGHT!"
"The Last Question" - Isaac Asimov
--
View this message in context: 
http://octave.1599824.n4.nabble.com/Variables-in-Switch-Case-tp4526446p4526446.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]