In Matlab I need someone to code this Traverse through two i

In Matlab I need someone to code this

Traverse through two integer arrays - array1 & array2, outputting each elements\' value and whether or not they are equal.

Solution

here i am assuming the length of the given two arrays are equal:

for k=1:len(array1)

       disp(array1(k))

       disp(array2(k))

       if array1(k) == array2(k)

             disp(\"both values are equal)

      else

             disp(\"both values are not equal)

In Matlab I need someone to code this Traverse through two integer arrays - array1 & array2, outputting each elements\' value and whether or not they are eq

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site