i want to get the input that maximize the output. how to get this value?
here is the programe code.
a=[ 1 2 3];b=[7 4 2];y=2.*a+5.*b; % the output should be y = [37 24 16]
ymax=max(y); %37 where the value a=1,b=7
so, what function can i use to return the value a=1 and b=7?
Best Answer