Submitted

Uniformly distributed weights that sum up to 1

Generates N uniformly distributed weights that sum up to 1

15 days ago | 5 downloads |

Solved

Cellular Automaton | Rule X

Cellular Automata (CA) provide a convenient way to represent many kinds of systems in which the values of cells (either 0 or 1) ...

5 months ago

Solved

Too mean-spirited

Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

5 months ago

Solved

Roll the Dice!

*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

5 months ago

Solved

Sum all integers from 1 to 2^n

Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

5 months ago

Solved

Distance walked 1D

Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

5 months ago

Solved

Weighted average

Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

5 months ago

Answered

Replacing NaN with nearest neighbor

A quick and dirty* way is to get the indices of the NaN values and replace them with their immediate neighbors (to the left or r...

Replacing NaN with nearest neighbor

A quick and dirty* way is to get the indices of the NaN values and replace them with their immediate neighbors (to the left or r...

5 months ago | 0

Submitted

str2pattern(str,width)

Converts a string to a binary pattern using Morse code

1 year ago | 3 downloads |

Submitted

The Barycentric Fixed-Mass method for estimating fractal dimensions

A method for estimating (multi) fractal properties of 2D/3D point distributions

1 year ago | 7 downloads |

Submitted

Condensation of earthquake location distributions: Optimal spatial information encoding

Reduces the size of a catalog by taking into the account individual location uncertainties

1 year ago | 7 downloads |

Submitted

Generic Fractal Generator

Generates a multi/monofractal point distribution from user supplied or build-in template matrix.

1 year ago | 17 downloads |

Submitted

Spatial mapping of Gutenberg-Richters b-value

Implementation of the three different sampling methods (DEW, FixR, NearN)

2 years ago | 15 downloads |

Answered

Batch inside a Batch

It seems like you are not allowed to change the pool size on the cluster. You can see the effect of the number of cores by chang...

Batch inside a Batch

It seems like you are not allowed to change the pool size on the cluster. You can see the effect of the number of cores by chang...

3 years ago | 0

| accepted

Answered

How to display the Matlab command window data in GUI static text

You create a text box and then you update it like this set(txt_handle,'string','blaaa')

How to display the Matlab command window data in GUI static text

You create a text box and then you update it like this set(txt_handle,'string','blaaa')

3 years ago | 0