|
"Jonathan" wrote:
> I am using matlab to generate a report containing a few hundred images.
>
> The slowest part of my program is when I save the images using the following code:
>
> saveas(gcf,full_path,'png');
>
> where full_path is a string containing the filename.
>
> I have tried using Visible Off. And running the code in a parallel loop. But it is still slow. It takes about 0.2 seconds to save an image. I have also tried using a ramdisk, but that did not help.
>
> Are there any better ways of saving my images?
>
> Thanks.
If you want speed then the fastest way is to use getframe and imwrite. However, this means the figure needs to remain visible on the desktop.
|