0

I'm trying to get some images from neural network function in matlab. One of the functions that I'm using is:

plotsomplanes(net)

I could not find anyway to automaticlly save the plot in a PNG file. Thanks in advance for any help or idea.

Javid_p84
  • 848
  • 2
  • 12
  • 26

1 Answers1

2

Try this. It will save the figure in you current working directory. See the documentation of saveas here

close all;
figure('visible','off');
plotsomplanes(net);
saveas(gcf,'filename','format'); %// in this case format is png
close
Nishant
  • 2,571
  • 1
  • 17
  • 29