Octave is a GNU project that provides a scripting language for mathematical analysis. Octave is (pretty much) compatible with MATLAB.
70
votes
31answers
15k views
What is your favourite MATLAB/Octave programming trick? [closed]
I think everyone would agree that the MATLAB language is not pretty, or particularly consistent. But nevermind! We still have to use it to get things done.
What are your favourite tricks for making ...
39
votes
10answers
11k views
Why/when should I prefer MATLAB over Octave?
In our shoestring operation we need to prototype algorithms in some higher-level language before committing to a C implementation on embedded hardware.
So far we have been using MATLAB to do that, ...
37
votes
10answers
49k views
Is there any good Octave GUI/IDE for Windows? [closed]
The default GNU Octave installation comes with a CLI. If the same CLI was inside a Windows Forms or WPF or GTK interface it would be much better, as it would allow:
White background
Normal copy/past
...
35
votes
2answers
14k views
Octave / Matlab: Extend a vector making it repeat itself?
Is there a way to extend a vector by making it repeat itself?
>v = [1 2];
>v10 = v x 5; %x represents some function. Something like "1 2" x 5 in perl
Then v10 would be:
>v10
1 2 1 2 ...
19
votes
3answers
975 views
Why does Gnu Octave have negative zeroes?
This is an odd one I'm puzzled about. I recently noticed at the Gnu Octave prompt, it's possible to enter in negative zeroes, like so:
octave:2> abomination = -0
And it remembers it, too:
...
17
votes
4answers
1k views
How do I detect if I'm running MATLAB or Octave?
I need to write code that should run equally well in Octave and on MATLAB. Problem is that it needs to do some GUI stuff, which MATLAB and Octave handle completely differently.
Is there a way I can ...
17
votes
3answers
2k views
How can I access a matlab/octave module from python?
I am looking for a way to access a matlab module from python. My current situation is this:
I have a python code that does numerical computations by calling Lapack routines while the memory is ...
16
votes
7answers
2k views
How should I do rapid GUI development for R and Octave methods (possibly with Python)?
We are a medium-sized academic research lab whose main outputs are new statistical methods for analyzing large datasets. We generally develop in R and MATLAB/Octave.
We would like to expand the ...
15
votes
7answers
11k views
Plotting with Octave after most recent MAC OSX update
Hi I just recently downloaded the most recent snow leopard update. Then I tried to plot something using Octave which has been installed on my computer for months (and plotting has worked all that ...
13
votes
4answers
3k views
Differences between Octave and MATLAB?
This is a really beginner question, but here it goes:
I'm a student programmer who knows Python, Ruby and some C who is trying to decide whether to learn GNU Octave or Matlab. I know that they have a ...
13
votes
1answer
7k views
Zoom out in Octave / gnuplot
I use Octave with gnuplot under Windows.
I can zoom in using the right mouse button. But how can I zoom out from the UI?
13
votes
4answers
2k views
Interfacing octave with C#
I have developed a program in Octave to which I would like to add a GUI layer. I want to create an executable program in C# that I can distribute but want to stick with the linear algebra constructs ...
11
votes
3answers
6k views
“Cloning” row or column vectors
Sometimes it is useful to "clone" a row or column vector to a matrix. By cloning I mean converting a row vector such as
[1,2,3]
Into a matrix
[[1,2,3]
[1,2,3]
[1,2,3]
]
or a column vector such ...
10
votes
2answers
5k views
octave + gnuplot + os x 10.6 : nothing happens
On my first-gen Macbook Pro, with OS X 10.6.1, I can launch gnuplot and get a plot, after I set the terminal to x11, with a command like
plot [-6:6] sin(x).
But when I launch octave, and try a plot ...
10
votes
2answers
21k views
Matrix multiplication in numpy
The numpy docs recommend using array instead of matrix for working with matrices. However, unlike octave (which I was using till recently), * doesn't perform matrix multiplication, you need to use the ...