Problem one: Enter a vector, named vector1, which has at least 6 elements, using the input statement.
Create a new vector, named vector2, containing only the elements in the even numbered positions from vector1. For example, if vector1 is [0 1 2 3 4 5 6], vector2 should be [1 3 5].
Problem two: Write a MATLAB program (script) to add all the elements of a matrix.
Do not use the MATLAB sum() function. Prepare the program general so that it will work with any size matrix.
These are two different problems that I am confused on. Please help, thanks!!!