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.
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