how to check symmetric for vector or array with 1 dimension

19 views (last 30 days)
Dear all,
I have an array and do sum modifi ( mutation) , I want to check before do mutation if they symmetric or not ?
ex: A=[ 1 2 1 ] , after mutation A=[1 2 1] . ---> if this case happen I want to know before I do mutation
thank you .

Accepted Answer

Andrei Bobrov
Andrei Bobrov on 12 Feb 2019
isequal(A(:),flip(A(:)));

More Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!