I have AF_Field_P that is 181X361 matrix, and I want Pp to be 1001X181X361, which means, I want to save all the values with different Xp. The output from this is only the last 181X361 matrix, which is for Xp = 1e3;
if true % code
endXp = 20:1*Km;Yp = 1*Km;rho_p = sqrt(Xp.^2+Yp^2+HT^2);FSPL_p = (4*pi*rho_p/lmda).^2; % Free Space Path Loss
for pp = 1:length(Xp) Pp(pp) = (4*pi*abs(AF_Field_P).^2)/FSPL_p(pp);end
Best Answer