Main Content

Convert .NET Enumeration Values to Type Double

To convert a value to a MATLAB® double, type:

gameDay = System.DayOfWeek.Thursday;
myValue = double(gameDay)
myValue =
     4