I am trying to answer using the following code
% Sample Array Data
data_set=rand(259,1000); %I intentionally changed the column number
%First 256 Electrodes
req_data1=data_set(1:256,:);
%Last 3 Electrodes
req_data2=data_set(257:259,:);
% Vertical Concatenation
result_data=[req_data1;req_data2];
% Next Mutual coherence of the matrix
coh_data=mutual_coherence(result_data)
The custom function mutual_coherence avalible here (please verify). You may look on other MATLAB inbuilt function, like corr,norm etc. Once you select a very large array size, a problem may arise, please refer to this answer.