Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [octave]

{octave} is a high-level interpreted language, primarily intended for numerical computations. It is quite similar to {matlab}.

17
votes
3answers
8k views

Octave to LaTeX

Is there anything (command/script/function) that can convert a Octave expression to LaTeX. What I am asking for is something like this: I type a = eye(3,3); %Identity Matrix and then do something ...
8
votes
3answers
3k views

pgfplots: 3D surface plot from data with free format

I want to plot 3D data from a file (data file) using pgfplots. The data represents an ellipsoid. I want to draw the outer shell like in the following picture, just without the background and in ...
3
votes
3answers
2k views

Problems with including a tikz tex file generated by Octave (MatLab clone)

I have plotted a figure in Octave and printed it as a TikZ figure (see the device option) to a tex file called comparison_tikz.tex, and I have imported it into my document with the line \input{...
2
votes
1answer
297 views

Octave/Matlab using gnuplot: Diagonals in barplot

i started using octave figures for my LaTeX-document and i am not quiet satisfied about a small detail about the output pdf: I am using the bar-option for plotting and in the pdf the diagonals of the ...
2
votes
1answer
2k views

How to set the size in Octave, using Gnuplot for graphics from Octave?

I am using Octave for all my calculations and plotting. By telling Octave graphics_toolkit gnuplot I can create a *.tex-document by print -dtikz filename.tex Which I can then use by \input{...
1
vote
1answer
578 views

How to scale images when imported as .tex files

I have quite a few diagrams created by Gnu Octave/MathLab which I need to include in a document. Octave can create several different outputs, but its PDF output is not really that nice as it has a lot ...
1
vote
1answer
43 views

executable code containing symbol `^` inserted with verbatim on pdf. Error while copying back into a text editor

I'm trying to insert Octave code in a pdf containing the character ^. However when I copy the code from the generated pdf, the code doesn't run: The I already posted similar question and could solve ...
1
vote
1answer
36 views

Code using verbatim doesn't work when copied back in a text editor

I'm trying to use verbatim to copy the implementation of an algorithm written in octave. For this I introduced the following lines in latex \begin{verbatim} F = @(z) [z(1) + 2*z(2) - 2; 2*z(2)*z(3)^2 ...
1
vote
1answer
338 views

Is there some way i can edit a Octave eps and send it to LaTeX to be edited with psfrag?

I want to cut just a part of a eps plot made with Octave (its colorbar) and send it to LaTeX, still being able to use psfrag with it. Is there a way to do it?
1
vote
1answer
779 views

Problem importing Octave Plot using TiKZ - pgfkeys Error on gpcolor

I am trying to include a set of Octave generated plots in a report, however I am constantly receiving the same error from pgf about it not recognizing \gpcolor A MWE would be \documentclass{article}...
1
vote
0answers
307 views

How to display colors of Octave code in latex with listings?

In my paper I include Octave code with \usepackage{listings} No I want that the text and numbers be written in the same colors as the are represented with in Octave. Everything is fine, except that ...
1
vote
0answers
327 views

Octave-Pgfplot error: Could not read table [closed]

\documentclass[border= 5mm]{standalone} \usepackage{filecontents,pgfplots} \begin{filecontents}{data.txt} x y z 2 1 5 3 2 6 2 4 7 4 4 4 5 5 5 6 7 8 9 10 11 \end{filecontents} \begin{document} \begin{...
0
votes
1answer
191 views

Importing plots from third party tools

After working on some data in Octave, I need to export the resulting plots (made up of multiple curves and including axis labels and legends) and include them in a report. My first choice (that I had ...
0
votes
1answer
22 views

executable code containing symbol `'` inserted with verbatim on pdf. Error while copying back into a text editor

I'm trying to insert Octave code in a pdf. However, there is a problem with the sign ' (which means transposition in Octave code). However when I copy the code from the generated pdf, the code doesn't ...