% Get values height and weight from the user and calculate the BMI
  wt_lb = input('Enter your weight in pounds: ');
  ht_ft_in = input('Enter your height [ft in]: ');
  ht_ft = ht_ft_in(1);
  ht_in = ht_ft_in(2);
  ht_inches = ht_ft*12 + ht_in;
  wt_kg = wt_lb * 2.2;
  ht_m = ht_inches * 0.0254;
  bmi = wt_kg / ht_m^2 ;
  disp(['The Body Mass Index of a person who weighs ',num2str(wt_lb),' pounds and is ', ...
       num2str(ht_ft), ' ft ', num2str(ht_in), ' in is ', ...
        num2str(bmi)] );
  