I have made the loop like given below, in loof f is changing itratively. Plz confirm if I have made it correctly?
fr = 30; wr = 2*pi*fr; % reference freq
f_min = 6; f_max = 40; f_int = 2;
f = f_min:f_int:f_max
for ii = 1:length(f)
w(ii) = 2*pi*f(ii);
Rosf(ii) = (1/2)*((d_vp/vp1)+(d_rho/rho1)-(d_EP/Ep1)*(1/pi)*log(wr/w(ii))) % Intercept when Sw changes