How to plot 2D density plot with very large files?
이전 댓글 표시
Hi
I want to plot 2D density plots with a colourbar for very large files. I want my x ais to be longitude, y axis to be latitude and the z axis as absolute VTEC as colour bar. I was trying to run the codes given below but I getting a error. as
"Error using repmat
Requested 373471x373471 (1039.2GB) array exceeds maximum array size preference (15.9GB). This might cause MATLAB to become unresponsive.
Error in meshgrid (line 61)
xx = repmat(xrow,size(ycol));"
Any suggestions on how can I fix this so that I can obtain my dentsity contour plots ?

Im attaching my part of data. Is it possible for the graph to have blue colour as background colour as shown with the figure attached.
load('Data 1.mat')
whos
xi =Longitude;
yi = Latitude;
[numel(xi), numel(uniquetol(xi))]
[numel(yi), numel(uniquetol(yi))]
[X,Y] = meshgrid(xi,yi);
Z = Absolute_VTEC;
pcolor(X,Y,Z)
shading interp
colorbar
colormap(jet)
댓글 수: 2
Walter Roberson
2023년 2월 19일
Do you possibly have scattered data instead of a grid of data?
373471.^2*8/1024.^2
MB -- you don't have enough memory; decimate X,Y until you can hold the resulting array in memory. With only roughly 10,000 pixels on a monitor in each direction, you can't discriminate more than that many discrete locations, anyway.
채택된 답변
추가 답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Discrete Data Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


