Can matlab access java class variable?
Mostra commenti meno recenti
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?
Risposte (1)
Urmila Rajpurohith
il 22 Nov 2019
0 voti
You can refer to the example provided in the below documentation link on how to Access Public and Private data
Categorie
Scopri di più su Call Java from MATLAB in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!