LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
exportTikZ.m
1function pdfFile = exportTikZ(self, filePath)
2% EXPORTTIKZ Export network diagram to PDF file
3%
4% PDFFILE = EXPORTTIKZ(FILEPATH) compiles the TikZ code and saves
5% the resulting PDF. Returns the File object of the exported PDF.
6%
7% Requires pdflatex to be installed.
8%
9% Example:
10% pdfFile = model.exportTikZ('network');
11%
12% Copyright (c) 2012-2026, Imperial College London
13% All rights reserved.
14
15% Convert MATLAB model to Java Network
16jnetwork = JLINE.line_to_jline(self);
17
18pdfFile = jnetwork.exportTikZ(filePath);
19end