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.44% Correct | 55.56% Incorrect
Last Solution submitted on Mar 19, 2025

Problem Comments

Solution Comments

Show comments

Group

Basics on Vectors Image
Basics on Vectors
  • 11 Problems
  • 7937 Finishers

Problem Recent Solvers1091

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