You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: getNAJD.m
    path of file: ./repos/audio_steganalysis_ml/feature_extract/base_modules
    
    the code of the file until where you have to start completion: %% Calculate accumulative neig
    
function F = getNAJD(A1,A2,T)
% get accumulative neighboring joint density A1 --> A2, range -T..T
F = zeros(2*T+1);
[Nr, Nc] = size(A1);

for i=-T:T
    FF = A2(A1==i); % filtered version
    for j=-T:T
        F(i+T+1,j+T+1) = nnz(FF==j) / (Nr * Nc);
    end