Questions tagged [octave]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
81 views

Batch installing packages script in Octave

I am attempting to write a light script to deal with multiple package installation in Octave. The available packages can be checked in Octave Forge or wikipedia. For example, if the packages ...
JimmyHu's user avatar
  • 4,708
3 votes
1 answer
605 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 ...
littleBOT's user avatar
4 votes
1 answer
65 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 ...
babelproofreader's user avatar
1 vote
1 answer
71 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 ...
Glock's user avatar
  • 13
3 votes
2 answers
497 views

Spectrum Analysis with Discrete Fourier Transform

Here is a simple implementation of the Discrete Fourier Transform: myFourierTransform.m ...
Ziezi's user avatar
  • 1,174
4 votes
2 answers
1k 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: ...
Ziezi's user avatar
  • 1,174
1 vote
1 answer
2k views

Find first N primes

Here is code that returns the first N prime numbers: ...
Ziezi's user avatar
  • 1,174
10 votes
2 answers
350 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 ...
Dovi Salomon's user avatar
8 votes
2 answers
1k 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: ...
Anmol Singh Jaggi's user avatar