Question: I need fix this funcion. Some ES values are corrupted and I know that at least 5 of the 8 values are right. E S

I need fix this funcion. Some ES values are corrupted and I know that at least 5 of the 8 values are right.
ES=[4;-2;10;-3;3;-7;17;8];
function x= myFunction(ES)
TF=0;
while TF =1
x=randi([0,9],4,1);
;
2**x(1)+x(2)-2**x(3);
-3**x(1)-2**x(2)-x(3)+x(4);
x(1)+x(2)+2**x(3)-2**x(4);
-2**x(1)+x(3);
-x(1)+2**x(2)-x(3)-2**x(4);
-x(1)+2**x(2)-x(3)+2**x(4);
-x(1)-x(2)+2**x(4);
if )==(ES
TF=1
break;
end
end
end
 I need fix this funcion. Some ES values are corrupted and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!