I produced this code:
for i=1:m
for ii=1:m2
Reference_SignalCut=ref_matrix(:,m2);
Surveillance_SignalCut=surv_matrix(:,m);
[afmag3,delay3,doppler3] = ambgfun(Reference_SignalCut,Surveillance_SignalCut,fs,[1e6 1e6]);
afmag3 = afmag3*1; % Select plot gain *1
afmag3(afmag3>1 )= 1;
end
end
But I get this error:
Error using zeros
Requested 131072x95759 (93.5GB) array exceeds maximum array size preference (13.9GB). This might cause MATLAB to become unresponsive.
Error in ambgfun (line 131)
amf = zeros(nfreq,taulen);