Questions tagged [octave]

GNU Octave is a high-level interpreted language, primarily intended for numerical computations.

GNU Octave is a high-level interpreted language, primarily intended for numerical computations. It provides capabilities for the numerical solution of linear and nonlinear problems, and for performing other numerical experiments. It also provides extensive graphics capabilities for data visualization and manipulation. Octave is normally used through its interactive command line interface, but it can also be used to write non-interactive programs. The Octave language is quite similar to Matlab so that most programs are easily portable.

For more information visit their site.

52 questions
8
votes
1 answer

Why does the expression exp(i*pi) return the wrong result in GNU Octave?

I started to learn GNU Octave today, and tried the first expression given in the manual exp(i*pi) The result is ans = -1.0000e+000 + 1.2246e-016i And it seems GNU Scientific Library gives similar results too. So is this a Octave bug, or general…
8
votes
1 answer

Suppress "qt5ct: using qt5ct plugin" message

Every time Octave draws a figure (eg graph), I get the following message: qt5ct: using qt5ct plugin How do I suppress it?
Tom Hale
  • 2,708
5
votes
2 answers

How do I run a Linux shell command from Octave?

I want to run commands like pdflatex and cp from an octave script. Is there a way to do that?
pirad
  • 185
  • 1
  • 1
  • 4
4
votes
2 answers

How to add Octave CLI to the system PATH variable in Windows?

I installed Octave 4 (from here) which has both a GUI and a CLI. However, Octave doesn't seem to be added to the PATH variable, so typing octave or octave-cli into the command line doesn't do anything. Is there a way to fix that (without adding all…
4
votes
2 answers

Displaying a sequence of images in Linux

I'm generating a sequence of images saved as .PNG files on disk, labelled say plot001.png, plot002.png, plot003.png. These are actually saved plots from Octave, a scientific data manipulation/plotting tool. There are about 50-200 of these…
BobBanana
  • 177
4
votes
3 answers

3D plotting in Ubuntu

I have Ubuntu 10.10 installed and need to plot 3D graphic. I have installed several free applications available in the repository, like QtiPlot and GNU Octave. I have found out and created the following graphic. Now I have to show in the same…
Bakhtiyor
  • 940
  • 6
  • 22
  • 35
3
votes
3 answers

How to do binary decimal calculations with bin2dec

What is the Octave NaN for? Is dot wrong delimiter? >> bin2dec ('10.1') ans = NaN
3
votes
2 answers

Software GNUPlot not launching from GNU Octave

I'm trying to launch GNUPlot from Octave, but when I do I get the following error: octave-3.4.0:3> plot(x,y) dyld: Library not loaded: /usr/X11/lib/libfreetype.6.dylib Referenced from: /usr/X11/lib/libfontconfig.1.dylib Reason: Incompatible library…
3
votes
1 answer

Conditional variables depending on whether Matlab or Octave is running the code

I have written some code for Matlab/Octave. Basically, they have the same syntax and everything, but, for example, they have different functions for optimization (linprog/glpk,quadprog/qp). I want to run the same code in both Matlab and Octave and…
pirad
  • 185
  • 1
  • 1
  • 4
3
votes
4 answers

VBS script execution blocked on Windows 10

Posting this question on behalf of GNU Octave trying to troubleshoot execution problems. We've recently had a handful of Windows users install the software and be unable to run the program. Often they get no errors, messages, or useful feedback,…
Nick J
  • 141
2
votes
1 answer

Show Octave plot from shell script

If I invoke Octave to plot something, it needs the interactive prompt to stay running and show the plot. When running from the command line, the --persist option will force Octave to keep open after all Octave commands are executed, so I can see…
dronus
  • 1,978
2
votes
1 answer

In what (small) ways can I modify Octave's compile options to enhance it without breaking it?

If the title to this question seems a bit vague, I am sorry. But I wasn't sure how to distill what I am attempting to do into a single sentence. A few weeks back I learned that I could build and install recent releases of Octave on an Ubuntu 12.04…
irrational John
  • 3,353
  • 4
  • 29
  • 38
2
votes
1 answer

I can not find the octave.exe after installing octave

When installing oct2py library on Python, I was required to have GNU Octave installed in my path, in another word, setx PATH "%PATH%; where the folder has the file “octave.exe”. However, I can not find the octave.exe after installing octave using…
Wiles Dai
  • 21
  • 1
  • 2
2
votes
1 answer

How do I start Octave GUI from zip file install

I downloaded windows 32 zip file version of Octave from here I do not want to use the installer to fully install Octave and would prefer to use it through the zip file extraction I can start octave in the command line from …
user13267
  • 1,873
2
votes
1 answer

Blank command prompt in Windows using Octave

I'm using Octave 3.6.4 on Windows 10. All appears to be working ok, except there's no command prompt. I know that you can Customize the prompt using PS1, but that still leaves it blank. Here's a screenshot:
icc97
  • 625
1
2 3 4