1function exportTikZToFile(self, filePath)
2% EXPORTTIKZTOFILE Save TikZ/LaTeX source code to a file
4% EXPORTTIKZTOFILE(FILEPATH) saves the raw TikZ code without compilation,
5% useful
for manual editing or integration into other LaTeX documents.
8% model.exportTikZToFile(
'network.tex')
10% Copyright (c) 2012-2026, Imperial College London
13% Convert MATLAB model to Java Network
14jnetwork = JLINE.line_to_jline(self);
16jnetwork.exportTikZToFile(filePath);