MATLAB Answers

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?

  0 件のコメント

サインイン to comment.

回答 (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

  0 件のコメント

サインイン to comment.

サインイン してこの質問に回答します。

タグ

製品


Translated by