title: Change 3D view in matlab
body: <p>I would like to change the view of a 3D plot in matlab such that the <code>y</code>-axis points upward and the <code>z</code>-axis points to left. For example, consider the following plot:</p>
  
  <p><img src="https://i.stack.imgur.com/SjzAu.png" alt="enter image description here"></p>
  
  <p>Here the <code>x</code>-axis points forward, the <code>y</code>-axis points to the right and the <code>z</code>-axis points upward.</p>
  
  <p>I would like to have the <code>y</code>-axis points upward and the <code>z</code>-axis points to the left instead. I tried to rotate the plot (using the figure window toolbar rotate button) but I could not get it to work. (It should just be a simple 90 degrees rotation about the <code>x</code>-axis)</p>
  
  <p>Code to generate the plot:</p>
  
  <pre><code>  membrane
    view(100,50)
    xlabel('x-axis');
    ylabel('y-axis');
    zlabel('z-axis');
    grid on
  </code></pre>