Solved


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

14 years ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

14 years ago

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

14 years ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

14 years ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

14 years ago

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

14 years ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

14 years ago

Question


Is the new Cramer's rule algorithm really as good as LU?
The Wikipedia article on Cramer's rule cites a recent paper that claims to have an O(n^3) algorithm: Ken Habgood and Itamar Are...

15 years ago | 0 answers | 0

0

answers

Submitted


wordhit
determines probabilities and expected times to produce words in a random character stream

15 years ago | 1 download |

0.0 / 5

Answered
Block diagonalize a matrix
It turns out to be easier than I thought. Given V such that A*V=V*E we find any W such that [W,V] is invertible and if A*W = W*...

15 years ago | 0

Submitted


quantilese
determines quantiles of data and their standard errors or confidence intervals

15 years ago | 1 download |

5.0 / 5

Submitted


scatterquad2
calculates the volume under a surface defined by scattered points

15 years ago | 3 downloads |

5.0 / 5

Question


Block diagonalize a matrix
Given a square matrix A and a rectangular matrix V, how do we find a complement U such that [U,V]\A*[U,V] is block diagonal? Fo...

15 years ago | 1 answer | 0

1

answer

Answered
What is missing from MATLAB?
1. Distinguishing variable from function names in M-Lint. To get around the current limitation, "declare" which names are varia...

15 years ago | 7

Submitted


groebner
manipulate and solve systems of multivariate polynomial equations by computing the groebner basis

15 years ago | 2 downloads |

4.5 / 5

Submitted


election
Implements many different methods for determining the winner of an election given voter preferences.

16 years ago | 2 downloads |

0.0 / 5

Submitted


Compound Poisson simulation
benchmarks several versions of code for generating Compound Poisson random variables

16 years ago | 1 download |

0.0 / 5

Submitted


jointable
Join pairs of tables using arbitrary keys

16 years ago | 2 downloads |

0.0 / 5

Submitted


multisetdiff
like setdiff, but any repeated elements of A are removed only once for each time they occur in B

16 years ago | 1 download |

0.0 / 5

Submitted


lexcmp
Fast C-style array/string comparison (by lexical ordering)

16 years ago | 1 download |

0.0 / 5

Submitted


Pointers Toolbox
basic functions to work with pointer variables and dynamic data types

17 years ago | 2 downloads |

4.0 / 5

Submitted


stack
manipulate stack objects as dynamic arrays

17 years ago | 1 download |

0.0 / 5

Submitted


cmsbounds
Determine bounds on a distribution given the first few moments

17 years ago | 1 download |

0.0 / 5

Submitted


sumsqint
Finds all distinct ways of writing a number as the sum of squares, i.e. solve x^2+y^2=n for 0<=x<=y.

17 years ago | 1 download |

5.0 / 5

Submitted


NextVector toolbox
files for iterating over permutations, combinations, subsets and vectorized for/while loops

17 years ago | 2 downloads |

5.0 / 5

Submitted


panjer
Approximate the distribution of a compound random variable by Panjer recursion.

17 years ago | 1 download |

5.0 / 5