Element-wise division: Convert pounds to kilograms
Assign row array weightKilo with the corresponding weight in kilograms.
Use the following conversion: kg = lb / 2.2
Your Function
1 function weightKilo = ConvertToKilo(weightPounds)
2
3 weightPounds= [100 190 163 211]; [20 25 30 35];
4
5 weightKilo = weightPounds/2.2;
6
7
8
9 end
Code to call your function
1 ConvertToKilo([100, 190, 163, 211])
Assessment
Check if ConvertToKilo([100, 190, 163, 211]) returns [45.4545,
86.3636, 74.0909, 95.9091]
Check if ConvertToKilo([20, 25, 30, 35]) returns [9.0909, 11.3636,