Borrar filtros
Borrar filtros

how to pass java collection to matlab

3 visualizaciones (últimos 30 días)
Jason Novotny
Jason Novotny el 9 de Ag. de 2016
Respondida: Malcolm Lidierth el 11 de Ag. de 2016
Hi, I hava a fairly simple Java POJO that contains 4 fields- to of type String two Double, let's call it Foo. I want to pass a list of Foo to Matlab
List<Foo> foos;
How or hat is the best way to accomplish this? I was looking at MWJavaObjectRef but not quite sure I understand. Any simple bit of code would help.
Thanks, Jason

Respuestas (1)

Malcolm Lidierth
Malcolm Lidierth el 11 de Ag. de 2016
Probably simplest to use an array
myArray will be a java array of type Object.


Más información sobre Call Java from MATLAB en Help Center y File Exchange.


Community Treasure Hunt

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

Start Hunting!

Translated by