Large MATLAB Figure (>1 GB)
조회 수: 7 (최근 30일)
이전 댓글 표시
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
Walter Roberson
2023년 4월 14일
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
답변 (1개)
mark palmer
2023년 4월 14일
One obvious option is to break the image into segments and save each segment separately, then combine later on.
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!