Rank: 1608 based on 55 downloads (last 30 days) and 6 files submitted
photo

W. Owen Brimijoin

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by W. Owen View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
25 Mar 2013 Screenshot Adaptive Track Engine Determines what changes you should make to the signal during a psychoacoustic adaptive track. Author: W. Owen Brimijoin psychoacoustics, adaptive track, experiment design, signal processing, thresholds, measurement 11 0
15 Jan 2013 Screenshot Oscillator and Signal Generator A simple command-line function for generating standard waveforms, click trains and noise bursts. Author: W. Owen Brimijoin signal generator, signal processing, oscillator, wavefunction, sinusoid, triangle 29 0
01 Sep 2011 Screenshot colormap_adjust This function adjusts the contrast of the selected colormap using a hyperbolic sine transformation. Author: W. Owen Brimijoin colormap, printing, compression, expansion, image processing 5 0
22 Jul 2011 Kautz sequence generator Generates example Kautz sequences of specified number of characters and subsequence lengths. Author: W. Owen Brimijoin sequences, kautz sequence, de bruijn sequence, statistics, sequence 0 0
22 Jul 2011 de Bruijn sequence generator Generates example de Bruijn sequences of specified number of characters and subsequence lengths. Author: W. Owen Brimijoin de bruijn, sequences, mathematics, statistics, debruijn, msequence 7 5
Comments and Ratings by W. Owen View all
Updated File Comments Rating
05 Apr 2013 absmax Returns the value of the element with the largest absolute value in the input matrix. Author: Adam McNeilly

What about this alternate (and arguably simpler) means of solving the problem:

A(abs(A)==max(abs(A(:))))

Hooray for logical indexing!

04 Apr 2013 TOGGLEFIG Finds and activates, or creates, figure with user-specified name. Author: Brett Shoelson

Only just found this function this morning - but it made my day.

26 Mar 2013 function making input twice calculate double of a number by just passing the number in the argument of the function Author: tushar kataria

There are other ways of solving this problem. I have here a humble suggestion:

function y = myfun(x)
tic;
pause(2*x)
y = toc;

Note that for large values of x, this may take some time to execute. It also may not return a precise value.

19 Aug 2011 de Bruijn sequence generator Generates example de Bruijn sequences of specified number of characters and subsequence lengths. Author: W. Owen Brimijoin

@fan

It’s a bit of a needle-in-the-haystack problem. While it’s true there are many valid (k,n) de Bruijn sequences (this many: factorial(k)^(k*(n-1))/k*n), there are k^(k^n) possible ways to combine k characters in a sequence of equal length!

This m-file keeps a *simple* history of dead-ends in its attempt to find a valid sequence, the simplicity of it being an advantage in avoiding out-of-memory problems, but I do not doubt there are better ways to do it. Suggestions are most definitely appreciated!

22 Jul 2011 COMBN (4.3) All combinations of N elements taken from the vector V. Author: Jos (10584)

The core of this function is a lovely little computational gem. Thank you.

Comments and Ratings on W. Owen's Files View all
Updated File Comment by Comments Rating
19 Aug 2011 de Bruijn sequence generator Generates example de Bruijn sequences of specified number of characters and subsequence lengths. Author: W. Owen Brimijoin Brimijoin, W. Owen

@fan

It’s a bit of a needle-in-the-haystack problem. While it’s true there are many valid (k,n) de Bruijn sequences (this many: factorial(k)^(k*(n-1))/k*n), there are k^(k^n) possible ways to combine k characters in a sequence of equal length!

This m-file keeps a *simple* history of dead-ends in its attempt to find a valid sequence, the simplicity of it being an advantage in avoiding out-of-memory problems, but I do not doubt there are better ways to do it. Suggestions are most definitely appreciated!

16 Aug 2011 de Bruijn sequence generator Generates example de Bruijn sequences of specified number of characters and subsequence lengths. Author: W. Owen Brimijoin Alex

2D-key 0011

000 0 Do
001 1 Re
011 2 Mi
111 3 Re
101 2

(1*sqrt(0)+1*sqrt(1)+2*sqrt(2)+1*sqrt(3))*2/4=pi

3D-key 00010111

0000 0 Do
0001 1 Mi
0101 2 Re
0111 3 Mi
0011 2 Fa
1011 3 Re
1001 2 Mi
1101 3 Re
1111 4

(1*sqrt(0)+1*sqrt(1)+3*sqrt(2)+3*sqrt(3)+1*sqrt(4))*2/8=pi

5D-key 00000101100100011101010011011111

000000 0 Do
000001 1 Mi
000101 2 Re
000111 3 So
010111 4 Fa
011111 5 Mi
011011 4 Re
011001 3 So
001001 2 Do
001000 1 Mi
001100 2 Fa
000100 1 So
010100 2 Re
010110 3 Mi
010010 2 Fa
011010 3 So
001010 2 La
101010 3 Fa
100010 2 So
110010 3 Re
110000 2 Mi
110100 3 Fa
111100 4 So
101100 3 Re
101110 4 La
001110 3 Fa
000110 2 Mi
000010 1 Re
000000 0 So
010000 1 Fa
011000 2 Mi
011100 3 Re
011110 4

(2*sqrt(0)+5*sqrt(1)+10*sqrt(2)+10*sqrt(3)+5*sqrt(4)+1*sqrt(5))*2/31=pi

29 Jul 2011 de Bruijn sequence generator Generates example de Bruijn sequences of specified number of characters and subsequence lengths. Author: W. Owen Brimijoin fan

I have another question.Since this function generates the requierd DB sequence through searching all the possible symbol combinations according to the character, arbitrary DB sequence can be obtained without regard to the limitaion of time and memory in principle. However, the generation of the sequence with large period is rather timing consuming. The command 'debruijn_generator(4,8)' gived no result after running for 8 hours. Any sugestions for this problem? Thank you very much.

29 Jun 2011 de Bruijn sequence generator Generates example de Bruijn sequences of specified number of characters and subsequence lengths. Author: W. Owen Brimijoin Brimijoin, W. Owen

In principle you could reseed Matlab's random number generator to the same value each time:

rand('seed',0);
sequence1 = debruijn_generator(5,3)
rand('seed',0);
sequence2 = debruijn_generator(5,3)

These ought to be the same. On the other hand, there is no reason you could not simply save a given sequence and load it whenever you need it.

01 May 2011 de Bruijn sequence generator Generates example de Bruijn sequences of specified number of characters and subsequence lengths. Author: W. Owen Brimijoin fan

Thank you for author's kind sharing. But how to obtain the same DB sequence each time?

Top Tags Applied by W. Owen
statistics, pseudorandom sequence, sequences, signal processing, 3 down 1 up
Files Tagged by W. Owen View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
25 Mar 2013 Screenshot Adaptive Track Engine Determines what changes you should make to the signal during a psychoacoustic adaptive track. Author: W. Owen Brimijoin psychoacoustics, adaptive track, experiment design, signal processing, thresholds, measurement 11 0
15 Jan 2013 Screenshot Oscillator and Signal Generator A simple command-line function for generating standard waveforms, click trains and noise bursts. Author: W. Owen Brimijoin signal generator, signal processing, oscillator, wavefunction, sinusoid, triangle 29 0
01 Sep 2011 Screenshot colormap_adjust This function adjusts the contrast of the selected colormap using a hyperbolic sine transformation. Author: W. Owen Brimijoin colormap, printing, compression, expansion, image processing 5 0
22 Jul 2011 Kautz sequence generator Generates example Kautz sequences of specified number of characters and subsequence lengths. Author: W. Owen Brimijoin sequences, kautz sequence, de bruijn sequence, statistics, sequence 0 0
22 Jul 2011 de Bruijn sequence generator Generates example de Bruijn sequences of specified number of characters and subsequence lengths. Author: W. Owen Brimijoin de bruijn, sequences, mathematics, statistics, debruijn, msequence 7 5

Contact us