How to use function max for cell?
Before I used max(b), but I am getting error and i use ([b{:}]) it looks like sum
this's my code
a= input ('Number of Participant :');for c = 1:a str1 = ['What''s the name (',num2str(c),') :']; str2 = ['What''s his/her value (',num2str(c),') :']; b{c,1} = input(str1,'s'); b{c,2} = input(str2);enddisp(b)[m,n]= size (b);Mb=max([b{:}])
when i try that code above, i think the result is total of value
i dont want total of value, i just want max of the value
anybody know?
please help me 🙂
Best Answer