Octave is a scientific programming & scripting language with syntax similar to MATLAB and SCILAB.

learn more… | top users | synonyms

3
votes
1answer
80 views

Partial differential equations with octave [on hold]

I need to find a numerical solution for $-\Delta U = f$, on the $\Omega = [0,1]^2$, with $ U|_{\partial \Omega} = 0$. I found a method: POISSONFD in ...
1
vote
0answers
21 views

Printing a plot in Octave-3.8.1 breaks LaTeX labels [closed]

Since upgrading to Octave 3.8 I have been unable to export plots with LaTeX labels. When the figure is displayed the labels render fine but when I try to export the figure using the ...
2
votes
2answers
69 views

Solve chemical formula (number of molecules in reaction)

In order to balance atom count in chemical equation: a O2 + b C12H24O11 → c CO2 + d H2O I make linear equation: ...
1
vote
2answers
337 views

Polar axes in Octave?

if i draw a polar plot with Octave the axes are cartessian, not polar axes. But in Matlab it seems polar axes exists for polar plots. Is there anyway to draw with polar axes in polar plots in Octave? ...
0
votes
0answers
98 views

Basic curve fitting in octave

I have a set of data, and I would like to find the line of best fit on it (linear). What I need is the slope. I have used polyfit and it gives me a value for the slope and y intercept. I cannot figure ...
0
votes
1answer
104 views

quiver3 gives non-conformant arguments?

Does anyone know why I'm seeing these errors? I'm not giving it a matrix. ...
2
votes
2answers
2k views

Euclidean distance in Octave

I would like to know if there is a quick way to compute the Euclidean distance of two vectors in Octave. It seems that there is no special function for that, so should I just use the formula with ...
1
vote
1answer
259 views

How can I get Octave to correctly compute a double integral of a piecewise function?

Computational Science People: The title is the question. I am trying to numerically compute a certain integral over a square in Octave (an open-source Matlab clone). I'm getting the wrong answer. ...
2
votes
1answer
323 views

Octave 3D mesh, data from file

I have a big file with 3 columns: density, dimension, value. example: 10 0.3 200 10 0.4 300 20 0.3 250 20 0.4 320 ... I am trying to draw a 3d plot - mesh with mesh() function in octave, like this: ...
2
votes
1answer
755 views

fmincg implementation in Python

I'm trying to re-implement Neural Networks in Python. I implemented the cost function and the backpropagation algorithm correctly. I have checked them by executing its Octave equivalent code. But ...
4
votes
1answer
671 views

Plotting x,y coordinates and vectors with octave

I have a data set containing the recorded data from a car's motion (latitude,longitude, and heading). I'd like to plot the (lat,lon) points on a 2D plot with a unit vector pointing in the direction ...
4
votes
1answer
468 views

Python syntax for MATLAB/Octave colon operator a:dx:b

I am trying to rewrite some MATLAB/Octave code in Python, and I don't know what would be the nicest or most intuitive way of writing ...
2
votes
1answer
210 views

In Octave, how do I specify that the solution to a matrix equation should be over integers?

In Octave, how do I specify that the solution to a matrix equation should be over integers? I.e., Given matrix $A$, vectors $x$ and $b$; $Ax=b$. Find vector $x=A^{-1}b$ such that all its entries are ...
7
votes
3answers
165 views

Converting from planar polynomial domain to planar polygon

Let's assume we have a planar domain whose boundary can be described with a polynomial curve (like Bezier curves). Now assume that you want to produce a discretization of the boundary, i.e. you want ...
10
votes
2answers
4k views

Octave: calculate distance between two matrices of vectors

Suppose I have two matrices Nx2, Mx2 representing N, M 2d vectors respectively. Is there a simple and good way to calculate distances between each vector pair (n, m)? The easy but inefficient way is ...
15
votes
10answers
4k views

Is it possible to use Octave to learn MATLAB programming?

I want to learn MATLAB programming so that I can conduct some researh/analysis on my own and also, so that I can study/modify some MATLAB scripts that I have found online etc. However, the problem is ...