title: How to set the origin to the center of the axes in Matlab
body: <p>When I plot a function f(x) in Matlab, for example, the sine function, the graph I get is this:</p>
  <p><a href="https://i.stack.imgur.com/WE2uo.png" rel="noreferrer"><img src="https://i.stack.imgur.com/WE2uo.png" alt="enter image description here" /></a></p>
  <p>I want to plot it in a rather different way, such as this, generated with Mathematica:</p>
  <p><a href="https://i.stack.imgur.com/Fdv6p.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Fdv6p.png" alt="enter image description here" /></a></p>
  <p>Note the axes position (together with the ticks), and the x and y labels position.</p>
  <p>Any help would be very appreciated.</p>