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.42% Correct | 55.58% Incorrect
Last Solution submitted on Mar 18, 2025

Problem Comments

Solution Comments

Show comments

Group

Basics - Binary Logic Image
Basics - Binary Logic
  • 10 Problems
  • 958 Finishers

Problem Recent Solvers1090

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