MATLAB Answers

how to pass java collection to matlab

6 ビュー (過去 30 日間)
Jason Novotny
Jason Novotny 2016 年 8 月 9 日
回答済み: Malcolm Lidierth 2016 年 8 月 11 日
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

  0 件のコメント


回答 (1 件)

Malcolm Lidierth
Malcolm Lidierth 2016 年 8 月 11 日
Probably simplest to use an array
myArray will be a java array of type Object.

  0 件のコメント



Community Treasure Hunt

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

Start Hunting!

Translated by