Assigning .net enumerations with matlab int32's

10 visualizaciones (últimos 30 días)
James Lambert
James Lambert el 2 de Jul. de 2018
Editada: Walter Roberson el 2 de Jul. de 2018
Is there any way to assign a value to a NET enumeration using matlab integers? For example:
a = AfgrowUnits.aSingleThroughCrack; %<-- This is an enumeration type in .net Library with int value 1010
a = int32(1010) %<-- I want to do this instead.
I know I can use GetValues and GetUnderlyingValue to workaround this problem, but I was wondering if there was a more straightforward solution.
Thanks.

Respuestas (0)

Etiquetas

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by