Top "Octave" questions

GNU Octave is a free and open-source mathematical software package and scripting language.

Differences between Octave and MATLAB?

I'm a programmer who knows Python, Ruby and some C who is trying to decide whether to learn GNU Octave …

matlab octave
How to concat string + i?

for i=1:N f(i) = 'f'+i; end gives an error in MatLab. What's the correct syntax to initialize an …

string matlab loops for-loop octave
Octave/Matlab: Adding new elements to a vector

Having a vector x and I have to add an element (newElem) . Is there any difference between - x(end+1) = …

matlab vector octave element
Plot window not responding

I'm using Windows 7 64 bit. Each time, I'm using plot function, plot windows will shows and draws successfully, but after that …

plot octave freeze
Octave-Gnuplot-AquaTerm error: set terminal aqua enhanced title "Figure 1"...unknown terminal type"

I've installed Octave and gnuplot via Homebrew, and downloaded AquaTerm.dmg. When I try to plot, I get the following …

terminal gnuplot x11 octave homebrew
How do you open .mat files in Octave?

I have a ".mat" file that I want to open and see the contents of. Since I don't have MATLAB, …

matlab terminal octave mat-file
How to insert a column/row of ones into a matrix?

Suppose that we have a 3x3 matrix like b = 2 * eye(3); ans = 2 0 0 0 2 0 0 0 2 and I want to a 3x4 matrix like 1 2 0 0 1 0 2 0 1 0 0 2 What …

octave
"Undefined function 'function_name' for input arguments of type 'double'."

A question that pops up quite frequently in different shapes and sizes is: Why do I get the following error …

matlab undefined octave
Gradient Descent implementation in octave

I've actually been struggling against this for like 2 months now. What is it that makes these different? hypotheses= X * theta …

octave
How can I sort a 2-D array in MATLAB with respect to one column?

I would like to sort a matrix according to a particular column. There is a sort function, but it sorts …

matlab sorting matrix octave