using Java enums or public static fields in MATLAB
Posted
by Jason S
on Stack Overflow
See other posts from Stack Overflow
or by Jason S
Published on 2009-08-03T18:10:25Z
Indexed on
2010/03/30
21:13 UTC
Read the original article
Hit count: 380
I'm wondering how in MATLAB you can get a reference to a Java enum
or static public field. In MATLAB, if you are trying to use Java objects/methods, there are equivalents to Java object creation / method call / etc.:
Java: new com.example.test.Foo();
MATLAB: javaObject('com.example.test.Foo');
Java: com.example.test.Foo.staticMethod();
MATLAB: javaMethod('staticMethod', 'com.example.test.Foo');
Java: SomeEnum e = com.example.test.SomeEnum.MY_FAVORITE_ENUM;
MATLAB: ?????
Java: int n = com.example.test.Foo.MAX_FOO
;
MATLAB: ?????
© Stack Overflow or respective owner