## Solution:

### IntegerOperandsRequired.m

### Explanation:

You have employed a noninteger value as one of the parameters (starting value, increment, or stopping value) for the colon (:) operator at the time employing it to make a vector of indices to reference into a function.

### Reason:

You accomplished computations to gain the begining or stopping values for the indexing however the result of those computations was not accurately an integer.

To solve this problem:

Modify the index computations employing the FIX, FLOOR, CEIL, or ROUND functions to make sure that the indices are integers. You can examine in case a variable compprises an integer by comparing the variable to the output of the ROUND function operating on that variable at the time MATLAB is in debug mode on the line bearing the variable.

### This is caused by something like:

```
T = rand(1,10);
T(2.2:7.99) % Note the indexing by: 2.2:7.99
```

Hence you require to look through your code and spot where you are employing a colon operator like the above. BTW, this fixes the warning message and produces the similar output.

`T(floor(2.2:7.99))`

### Do this at the command line:

`dbstop if warning`

Here, it must be noted that MATLAB was sending the above warning at the time of program runnig for the "LINE 1", while the reason of this warning was due to the non integer values of vector "mv_MV". So, employing the *round* command for its values solved the issue.

Now I have a great experience: "The position of errors MATLAB pointing to, is not constrainedly the exact position of mistakes in the code, causing the errors".

N1 is odd, so N1/2 is a fraction. Include 1 to that and it is still a fraction. You are then attempting to index from 1 to that fraction. That will provide you a warning.

You require to either prevent N1 from being odd, or otherwise you require to employ floor() or fix() or round() on the N1/2 so that it is no longer a fraction

(N-sizeData)/2 can be a fractional number, for example "something point 5" so attempt

`padding = floor((N-sizeData)/2);`

or better yet, only employ the padarray() function to do your padding.