To save a trainNetwork plot as an image in MATLAB, you can use the saveas function. Here is an example:
main.m70 chars4 lines
The plot function creates the trainNetwork plot, and gcf gets the handle of the current figure. saveas saves the current figure to a PNG file with the name net_plot.png.
You can replace the file type with other image types such as JPEG, BMP, or TIFF, by changing the file extension.
gistlibby LogSnag