Arrays - An array is a gathering of numbers or strings stored in memory. Each element is an array which has an index number and indexing starts at position 0 and can be called the first element of arrays. In Matlab we use arrays which can collect numbers and can be access using an index.…