Array operator to mimic different-dimension-array element-wise operations in MATLAB. It receives as input two arrays of potentially different dimensions, it resizes them to have same dimensions and finally performs the element-wise operation.
array_operator(array1, array2, operation)An array with dimensions equal to the "largest" input array. It is the result of applying the operator element-wise to both input arrays.
The first array
The second array
The operation. It can take values: '+', '-', '*', '/' and '^'