I have written a code, where I have matrix dimension 1801 by 88 and when i am running the code, phase is obtained. But in foor loop the first column of phase is repeatedly coming for other 88 columns. But in amplitude, it is coming properly i.e. 901 by 88. In phase, matrix dimension is 901 by 88 but in which same values are coming repeatedly for all columns. Please help me regarding this.
ss_nw = nn_ss(:,jj);
Ts = mean(diff(time));
P_amp(:,jj) = P_amp2(1:L/2+1);
P_amp(2:end-1,jj) = 2*P_amp(2:end-1,jj);