Create a loop to do Afmag for matrixes
1 view (last 30 days)
Show older comments
Miguel Albuquerque on 25 May 2022
Heu guys, this is probably very easy but i m struggling with it right now, thanks in advance.
I have this code, Initially I calculated reference_signalcut as a vector, but now it is a matrix, is there any way I could apply this to a matrix or do a for loop to apply it for each column of reference_signalcut.
reference_signalcut is a matrix 23979 by 400, with a signal in frequency domain.
[afmag,delay] = ambgfun(Reference_SignalCut,fs,1e6,'Cut','Doppler');
afmag = afmag*1; % Select plot gain *1
afmag(afmag>1 )= 1;
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!