What does this mean Requested 313121x313121 (730.5GB) array exceeds maximum array size preference.
1 次查看(过去 30 天)
显示 更早的评论
clear all
close all
clc
load('Ethafoam23kPa_FRFTest_1,5rms.mat')
R = (Response(length(Response)/2:end)*100);
sf = 31312.1;
% time = (0:1:2000)./sf; % is 10s
t = ((0: length(R) -1) )';
df = sf./length(t);% df is 0.1
figure (1)
plot (t,R)
st = fft(R);
st = st./length(R);
st=st(1:floor(length(R)/2)+1);
st(2:end-1) = 2 * st(2:end-1);
ml = abs(st);
freq = (0:length(ml)-1).*df;
figure(2)
plot(freq, ml,'k')
xlim ([0 3000])
ylim ([0 1.8])
hold on
h = hanning(length(R));
section1 = R.*h'; %%%% This where the problem is!!
st = fft(section1);
st = st./length(section1);
st=st(1:floor(length(R)/2)+1);
st(2:end-1) = 2 * st(2:end-1);
m2 = abs(st); % Phase command
m2= m2.*2;% Amplitude Correction
freq = (0:(length(m2)-1)).*df;
figure(2)
plot(freq, m2,'r')
3 个评论
Bjorn Gustavsson
2020-3-1
Check the size of R and h just before the line where you get the proble. If you're running a newer version of matlab, you might have run into a situation where you get automatic expansion of matrix sizes - you think you're filtering R, while matlab thinks you want to generate a honking hyuge array.
Image Analyst
2020-3-1
It means you're going to need a bigger computer. Ask your manager/supervisor for one that can handle a terabyte of RAM! Are you sure you didn't mean
section1 = R .* h;
which would be a lot less since it just does element-by-element multiplication instead of automatic expansion to create a 313121 - by - 313121 matrix.
回答(1 个)
Roshni Garnayak
2020-3-4
This issue could be due to RAM limitations. Try the following suggestions:
1. Go to MATLAB > Preferences > Workspace and ensure the Maximum array size limit is set to 100%. Then execute 'memory' command in the Command Window and send the output. Ensure that the Maximum possible array size is larger than the memory required by the data used in neural network.
2. Also, check that the Java Heap Memory is not set to a very large value because that might restrict the amount of memory available to perform computations.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!