MATLAB: How to get the secondary diagonal of a matrix

MATLABmatrix

for exaple:
A=rand(5,5)
diag(A)= main diagonal of matrix A
I want to take the elements A(1,5), A(2,4), A(3,3), A(4,2), A(5,1), (secondary diagonal), and put those ones into a vector without picking each element

Best Answer

diag(fliplr(A))