title: Create a Symmetric Matrix from a vector in MATLAB
body: <p>How to covert vector A to symmetric matrix M in MATLAB </p>
  
  <p><a href="https://i.stack.imgur.com/7qyEx.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7qyEx.gif" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/lilHJ.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lilHJ.gif" alt="enter image description here"></a></p>
  
  <p>Such that M is a symmetric matrix (i.e. A21=A12) and all diagonal terms are equal (i.e. A11=A22=A33=A44). </p>