Questions tagged [octave]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
92 views

Octave classdef enumeration workaround

AFAIK Octave still does not support enumerations, so I've done my best to write a workaround. The question is if there is something missing in code below, or maybe something can be improved? The ...
4
votes
1answer
37 views

Correct implementation of Akaike Information criteria in Octave function?

I've written the following Octave function which is designed to be repetively called in a Bayesian optimisation routine and which outputs a value J, the Akaike Information Criteria for the Logistic ...
1
vote
1answer
62 views

Set of matrix operations for summing around a matrix element

I have a results of simulations, which are discrete complex numbers representing wave function on a NxN grid. I calculate phase of the wavefunction. For every point on that grid I have to perform this ...
3
votes
2answers
359 views

Spectrum Analysis with Discrete Fourier Transform

Here is a simple implementation of the Discrete Fourier Transform: myFourierTransform.m ...
4
votes
2answers
861 views

Iterative Implementation of Towers of Hanoi

Here is an implementation of Towers of Hanoi based on few observed patterns1 from the easier recursive solution: ...
1
vote
1answer
761 views

Find first N primes

Here is code that returns the first N prime numbers: ...
10
votes
2answers
338 views

Running a simulation for all unique combinations of a range of parameters

I have written a script which is supposed to call the function at the bottom for each unique combination of values in the parameter vectors. That function is a simulation which I intend to run over ...
8
votes
2answers
765 views

Visualizing Newton-Raphson method for finding zeroes of a function

I have created a program to visualize the working of Newton-Raphson method to find the zeroes of a function: newton.m: ...