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: permittivity_soil_plot.m
    path of file: ./repos/mpsim/lib/snr/util
    
    the code of the file until where you have to start completion: function permittivity_soil_plot ()

% Remake Fig 6-a in Hallikainen et al. (1985):
% Hallikainen, M.T.; Ulaby, F.T.; Dobson, M.C.; El-Rayes, M.A.; Lil-Kun Wu;

    
function permittivity_soil_plot ()

% Remake Fig 6-a in Hallikainen et al. (1985):
% Hallikainen, M.T.; Ulaby, F.T.; Dobson, M.C.; El-Rayes, M.A.; Lil-Kun Wu;
% "Microwave Dielectric Behavior of Wet Soil-Part 1: Empirical Models and
% Experimental Observations," Geoscience and Remote Sensing, IEEE
% Transactions on , vol.GE-23, no.1, pp.25-34, Jan. 1985, doi:
% 10.1109/TGRS.1985.289497

perm = permittivity_soil_setup ();

n = numel(perm.real);
hr = NaN(n,1);
hi = NaN(n,1);
t = cell(n,1);
figure
hold on
for i=1:n
  hr(i)=plot(perm.real(i).moisture, perm.real(i).value, '-');
  t{i} = perm.real(i).type;
end