MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

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

67 correct solutions
52 incorrect solutions

Last solution submitted on Apr 17, 2015

1 Comment

Andriy Nych
on 2 May 2013

What if you update the test #3 in test suite?

4 Comments