% A script to enter the structure given in Attaway 4th ed, Problem 8.25
%
% If you have trouble running this script try restarting Matlab or Octave 
% or try the clear command to erase all your variables, then try this 
% script again.

kit(2).sub.id = 123;
kit(2).sub.wt = 4.4;
kit(2).sub.code = 'a';
kit(2).name = 'xyz';
kit(2).lens = [4 7];
kit(1).name = 'rst';
kit(1).lens = 5:6;
kit(1).sub.id = 33;
kit(1).sub.wt = 11.11;
kit(1).sub.code = 'q'; 