Large MATLAB Figure (>1 GB)
Mostrar comentarios más antiguos
I have MATLAB Figures of size 1.1 GB. The reason is the simulaiton sample time is 10ns, and data type is double (64 bit) in Xilinx HLS Blocks. This is just for 0.3 seconds time for a figure with only one waveform.
On saving this figure as an image after editing, the image file size exceeds 100 MB! I tried saving as svg image for reduced umage size, and included in MS Word. But, the picture had default mesh areas in it. On editing these meshes in Inkscape, the waveform within the mesh area also got deleted.
Extracted the x-axis and y-axis data tor reduce the data points for plotting sake. But, each data is a 1x20000001 array, and MATLAB doesn't open this large mat file!
Writing to xlsx file also didn't work - "The specified data range is invalid or too large to write to the specified file format. Try writing to an XLSX file and use Excel A1 notation for the range argument, for example, ‘A1:D4’." I don't understand what this means.
I've no idea how to view this large data or extract data every 1000 samples of x-axis (would correspond to 10e-6 resolution, which should be okay). I need to keep the simulation sampling time as 10ns, because the signals in the code require that resolution. Please help.
4 comentarios
Adam Danz
el 14 de Abr. de 2023
Knowing what's in the figure would be helpful and how those graphics objects are generated. For example, are you generating objects in a loop?
Walter Roberson
el 14 de Abr. de 2023
But, each data is a 1x20000001 array, and MATLAB doesn't open this large mat file!
Make sure that file is saved with -v7.3 option .
The specified data range is invalid or too large to write to the specified file format.
Excel has a limit of
= 1048576 rows and 16384 columns.
If you had to save it as a .xlsx file you could write out rows of up to 16384 columns, which would need about 1221 such rows (you would probably use different sheets for the two variables.) But be warned that appending data to a .xlsx file that big would start to get pretty slow.
Walter Roberson
el 14 de Abr. de 2023
It is never been clear to me whether setting the save() preferences to use -v7.3 files by default will affect the use of savefig() . .fig files are specially structured .mat files, so... maybe??
But if not, then if you have a figure handle in a variable, then in theory you can save() -v7.3 the handle into a .mat file
SUHANYA M S
el 15 de Abr. de 2023
Respuestas (1)
mark palmer
el 14 de Abr. de 2023
0 votos
One obvious option is to break the image into segments and save each segment separately, then combine later on.
1 comentario
SUHANYA M S
el 15 de Abr. de 2023
Categorías
Más información sobre Standard File Formats 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!