Guide Exporting Figures Octave - 2020-UQ-Communication-Systems/public GitHub Wiki

The current figure in octave can be saved to a file with the print command. For example:

plot(x, y); % plot like normal (replace with your normal plot type)
print('output.eps', '-depsc2'); % output to "output.eps" 

The current figure is saved to file output.eps. EPS files can be read by Latex, Word, etc.

Also on the command line you can convert to PDF by using

epstopdf output.eps