Symmetry of vector - MATLAB Cody - MATLAB Central

Problem 1451. Symmetry of vector

Difficulty:Rate
Determine whether the vector is symmetric or not (vector could be even or odd in length).
For example:
x = [1 2 3 3 2 1] is symmetric
x = [1 2 3 4 3 2 1] is symmetric as well!
x = [-1 -2 -3 3 2 1] is not symmetric

Solution Stats

44.4% Correct | 55.6% Incorrect
Last Solution submitted on Mar 14, 2025

Problem Comments

Solution Comments

Show comments

Group

Matrix Manipulation I Image
Matrix Manipulation I
  • 16 Problems
  • 98 Finishers

Problem Recent Solvers1089

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page