Hey , thanks in advance for reading this.
I have two matrixes, with two diferent signals in frequency domain(surv_matrix and ref_matrix). Both matrixes, have the frequencies values along the columns, and the lines are positions of a radar , so its coordinates. this matrixes have 50 000 by 400 values.( 400 are the different positions of a radar and 50 000 are the frequencies values for that position of the radar).
I want to correlate both matrixes with afmag function. But this function only allows vectors, so I was thinking of producing a for loop that for each column of those matrixes, cross-correlate the two signals for the same column. I needed help on doing this.
I have to get a code that cross-correlate surveillance_signalcut( a column vector from surv_matrix) and reference_signalcut ( a column vector from ref_matrix)
The code I will do then its this:
%Cross-ambiguity
[afmag3,delay3,doppler3] = ambgfun(Reference_SignalCut,Surveillance_SignalCut,fs,[1e6 1e6]);
afmag3 = afmag3*1; % Select plot gain *1
afmag3(afmag3>1 )= 1;
thank you

4 commentaires

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);
Jan
Jan le 31 Mai 2022
The message is clear: You need a lot of RAM to process problems with this size.
If you really have 50'000x400 matrices, it is very strange where "131072x95759" comes from.
According to me, the indexing part of the signals inside the loops should have i and ii respectively instead of m and m2.
Can you provide some more info on what is m and m2?
Miguel Albuquerque
Miguel Albuquerque le 6 Juin 2022
Alright, m is the number of columns of surv_matrix and m2 is the number of columns of ref_matrix, Thanks :D

Connectez-vous pour commenter.

Réponses (0)

Produits

Version

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by