- Instead of plotting repeatedly, update the xdata and ydata of the existing plots
- Downsample your data to just the required pieces
- Use drawnow to flush events that have built up in the queue.
Large array
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi I would like to plot and process large data array with a GUI. The problem is that with small data array, the user interface works correctly but with large array the plotting (1D and 2D plot) encounters big delays and the interactivity (scrolling, updating...) becomes impossible. What's the best way to plot, process and interact with large data arrays ? Thanks.
0 comentarios
Respuesta aceptada
Sean de Wolski
el 10 de Abr. de 2012
How are you plotting? What is the best way to visualize your data that requires minimal memory?
The best way would probably include a few steps:
2 comentarios
Más respuestas (2)
Jan
el 10 de Abr. de 2012
Please post any details, e.g. the used code and the absolute size of what you call "large". A 2D plot of 1e9 points will be slow under all conditions, while a plot of 1e5 lines can be impeded by a variety of factors. Without seeing the code, we cannot guess the cause of the slowdown or suggest any improvements.
5 comentarios
Vincent Gigot
el 10 de Abr. de 2012
1 comentario
Jan
el 10 de Abr. de 2012
You can use the "profile" command to find the bottlenecks of your program.
Ver también
Categorías
Más información sobre Electrophysiology 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!