Questions tagged [octave]

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

1
vote
1answer
60 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
188 views

Spectrum Analysis with Discrete Fourier Transform

Here is a simple implementation of the Discrete Fourier Transform: myFourierTransform.m ...
4
votes
2answers
728 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
420 views

Find first N primes

Here is code that returns the first N prime numbers: ...
10
votes
2answers
334 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 ...
7
votes
2answers
582 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: ...