Hi I need help with this MATLAB question please Ineed the an
Hi, I need help with this MATLAB question please. Ineed the answer ASAP. Note: This assignment is part of mt BE1500 Class: Into to Programming & Computer Engineering. This is an intro level.
For the following two arrays compare with all the Relational operators and show your results.
A = [43 65 60 85 90 100 56];
B = [44 20 87 93 90 87 120];
Solution
Ans.
A = [43, 65, 60, 85, 90, 100, 56];
B = [44, 20, 87, 93, 90, 87, 120];
for i = 0:6
if (A[i] > B[i])
disp(A[i] + \" is greater than \" + B[i]);
else if (B[i] > A[i])
disp(B[i] + \" is greater than \" + A[i]);
else
disp(A[i] + \" = \" + B[i]);
end
