Borrar filtros
Borrar filtros

Matlab can support List<List<Integer>> last=new ArrayList<​List<Integ​er>>();

2 visualizaciones (últimos 30 días)
SAMEER ahamed
SAMEER ahamed el 12 de Mzo. de 2014
Editada: SAMEER ahamed el 13 de Mzo. de 2014
Hi,
I have my mat-lab code declared below like?
  • OS : windows 7 64 bit ,Mat-lab R2013a ,Java 1.6 .
example :
list = java.util.ArrayList(); instead of this i want to declared like java Array List of List
List<List<Integer>> list=new ArrayList<List<Integer>>(); can you please let me know how mat-lab support ?
  1 comentario
SAMEER ahamed
SAMEER ahamed el 13 de Mzo. de 2014
Editada: SAMEER ahamed el 13 de Mzo. de 2014
Hi,
I am awaiting reply ? i have code in mat-lab like .
On Mat-lab
list =java.util.ArrayList()
while (1)
matrix = [33,2,2,2,2,2,2,2];% various values
for int i=1:length(matrix)
list.add(int32(matrix(k));
end
end
I got result like [33,2,2,2,2,2,2,2 ,4,42,52,62,882,28,28,8882] etc.. i would like to form like : [33,2,2,2,2,2,2,2 ],[4,42,52,62,882,28,28,8882] etc.
Note : Mat-lab support generics like
list=java.util.ArrayList<List<Integer>>();
Please refer this link : Mat-lab java generics

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Java Package Integration en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by