A=[18 33 31 34 15 37 10.5 48 50 38 35 39 42 33 31 1 5 9 13 11 27 35 -1 46 22 6 19 36];volt=round(A);%newscrip below
function [fruit_fin]=Program05b(volt)B=[1:1:28]O=[find(volt>=31 & volt<=40,28)]G=[find(volt>=21 & volt<=30,28)]P=[find(volt>=11 & volt<=20,28)]A=[find(volt>=0 & volt<=10,28)]U=[find(volt<0 | 40<volt,28)]fruit_fin=[O,P,G,A,U]end
% anwers % I know how to get it into a table.
18 P 33 O 31 O 34 O 15 P 37 O 10.5 P 48 U 50 U 38 O 35 O 39 O 42 U 33 O 31 O 1 A 5 A 9 A 13 P 11 P 27 G 35 O -1 U 46 U 22 G 6 A 19 P 36 O
Best Answer