1function tikzExportPNG(self, filePath, dpi)
2% TIKZEXPORTPNG Export network diagram to PNG image
4% TIKZEXPORTPNG(FILEPATH) exports the network diagram as a PNG image
5% at 150 DPI resolution.
7% TIKZEXPORTPNG(FILEPATH, DPI) exports at the specified DPI resolution.
9% Requires pdflatex and pdftoppm (from poppler-utils) to be installed.
12% model.tikzExportPNG(
'network.png')
13% model.tikzExportPNG(
'network_hires.png', 300)
15% Copyright (c) 2012-2026, Imperial College London
18% Convert MATLAB model to Java Network
19jnetwork = JLINE.line_to_jline(self);
22 jnetwork.tikzExportPNG(filePath);
24 jnetwork.tikzExportPNG(filePath, int32(dpi));