A row vector is not a matrix...
Not very clear problem, flip vertically? horizontally? elementwise?
:
The problem is really to just reverse a row vector. A row vector happens to be a matrix, but so does a column vector, and two or more dimensional matrices. Saying, "reverse a matrix" is ambiguous.
Select every other element of a vector
20389 Solvers
Sum the elements in either diagonal of a square matrix
178 Solvers
260 Solvers
516 Solvers
2988 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!