title: Matlab - How to save view configuration of matlab neural network
body: <p>I am trying to configure a neural network using matlab and <code>newff</code> command.</p>
  
  <p>After that, I am trying to visualize my created configuration using the <code>view</code> command.</p>
  
  <pre><code>x = view(net);
  </code></pre>
  
  <p>How can I save the displayed window to a <code>.png</code> file? I have tried with <code>saveas(x, 'figure.png', 'png')</code> but it won't work? Do you know how can I do that from code?</p>