Find the following sum by first creating vectors for the numerators and denominators:
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:2| Question number:31.2
All Answers
total answers (1)
>> num = 3:2:9
num =
3 5 7 9
>> denom = 1:4
denom =
1 2 3 4
>> fracs = num ./ denom
fracs =
3.0000 2.5000 2.3333 2.2500
>> sum(fracs)
ans =
10.0833
need an explanation for this answer? contact us directly to get an explanation for this answer