Can matlab access java class variable?

조회 수: 2 (최근 30일)
Liuxing Shen
Liuxing Shen 2019년 11월 11일
답변: Urmila Rajpurohith 2019년 11월 22일
As we know, when we instantiate a java class in matlab, we can access the methods of that instance by using syntax <instance_name>.<method_name>. However, when I try to access a public variable in that instance, I am not able to use <instance_name>.<variable_name> syntax to access the public varibale.
I am asking if there is a way to access a java class varible from Matlab, if yes, what is the syntax? If not, what is the recommended way to access thoses java variables from Matlab?

답변 (1개)

Urmila Rajpurohith
Urmila Rajpurohith 2019년 11월 22일
You can refer to the example provided in the below documentation link on how to Access Public and Private data

카테고리

Help CenterFile Exchange에서 Java Package Integration에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by