how to send the value of a Java variable to a matlab variable when the matlab session is accessed in Java?
Afficher commentaires plus anciens
Hello,
I am using " matlab.engine.shareEngine" concept for accessing matlab in Java.
I wanted to know how to send/assign the value of a java variable to a matlab variable.
for example:
int i=4;
Future<Void> vFuture = eng.evalAsync("x=i;");
I also tried eng.feval("x",i);
but it is giving the following error:
Undefined function or variable 'x'.
Please help me regarding which function do we need to use?
Thanks & Regards,
Shruthi Ramakumar
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Call MATLAB from Java dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!