fill() in parfor loop
Mostrar comentarios más antiguos
I've got ~200,000 polygons to be plotted with fill().
for i=1:size(data,1);
x=data(i,3:2:9);
y=data(i,4:2:10);
f=fill(x,y,data(i,2));
hold on;
end
It works well but takes a bit of time. When I use 'matlabpool open local 4' and change 'for' to 'parfor', I've got no figure output. Any solutions please?
1 comentario
Sean de Wolski
el 18 de Abr. de 2012
Do you actually expect to be able to differentiate 200000 polygons?
Respuesta aceptada
Más respuestas (1)
Edric Ellis
el 18 de Abr. de 2012
2 votos
Unfortunately, you cannot use a PARFOR loop in this way. The workers cannot create graphics on your client.
1 comentario
seb
el 18 de Abr. de 2012
Categorías
Más información sobre Parallel Computing Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!