Out of memory problem in MATLAB 2017
Mostra commenti meno recenti
In general the .mat files are of 1 or 2 kb like that.
When I converted the Lat and Lon python ( numpy) files to .mat files. It goes upto around 459685kb.
So when i try to make a meshgrid of these. Matlab shows out of memory.
Is there any solution?
7 Commenti
Rik
il 7 Feb 2022
What dimensions are the arrays you're attempting to store?
Joydeb Saha
il 7 Feb 2022
Rik
il 7 Feb 2022
A mat file contains variables, but isn't a variable itself. So it doesn't actually have an array size. What are the dimensions of the arrays you want to process?
Joydeb Saha
il 7 Feb 2022
Rik
il 7 Feb 2022
That looks like it is already a grid. Are you sure you need meshgrid on top of that?
Joydeb Saha
il 7 Feb 2022
You want to plot a map with 10848^4 pixels? That will end up with this size image:
%assuming 3*8 bit RGB
sz=3*10848^4;
fprintf('%d bytes\n',sz),fprintf('%.1f TB\n',sz/(1024^4))
Do you have that kind of hardware?
Risposte (0)
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!