Errico
A minor improvement on the fminsearchbnd (bounded fminsearch) created by John D'Errico. Changes:% Changes from fminsearchbnd:Changes from fminsearchbnd:1) in options structure, user may pass an 'output function' and 'plot function' to fminsearch.Original fminsearchbnd handled the output function...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (41): fminsearchbnd new Download |
This function implements a standard algorithm for computing factorials. It may not be the most efficient for very large arguments, but it is very transparent. The function accepts single numbers as inputs or arrays.Note that for any real work, the code suggested by John D'Errico is actually...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (51): Factorial of large numbers Download |
This function computes log10 of the factorial. Unlike FACTORIAL, it is not limited to arguments less than 171.Two methods are implemented, one based on the gamma function (thank you, John), as well as a direct sum. The user can choose between the two methods. The gamma method is superior and is...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Log of factorial of large numbers Download |
This is a very simple method to find prime numbers. I use a mathematical function to find non prime numbers. Thus I have compared its efficiency with a code found on Matlab Central, Written by John D'Errico.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 51.2 KB | Download (43): Method to find prime numbers Download |
SYNOPSIS: [total, details] = roll(str)INPUT str: Dice to be rolled. XdY, where X and Y are scalars, rolls X fair Y-sided dice. Both X and Y are necessary. If str is empty or omitted, '1d20' is used as default. ROLL replaces the dice expression(s) by the rolled result, and then evaluates the...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): A dice roller for Matlab Download |
For vectors, Y = RUNMEAN(X,M) computes a running mean (also known as moving average) on the elements of the vector X. It uses a window of 2*M+1 datapoints. M an positive integer defining (half) the size of the window. In pseudo code: Y(i) = sum(X(j)) / (2*M+1), for j = (i-M):(i+M), and...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): RUNMEAN Download |
Orthogonal Linear Regression in 3D-space by using Principal Components AnalysisThis is a wrapper function to some pieces of the code from the Statistics Toolbox demo titled "Fitting an Orthogonal Regression Using Principal Components...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Orthogonal Linear Regression in 3D-space by using Principal Components Analysis Download |
A polynomial is a mathematical expression involving a sum of powers in one or more variables multiplied by coefficients. A general multivariate polynomial is captured with the syntaxp = sum( c_i * prod( x_j^p_ij ) ) + kwhere the summation is over i, the product over j, and c_i is the set of...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 40.96 KB | Download (43): Symbolic polynomials Download |
This function performs interpolation faster than MATLAB's "interp1" function. In the limit of small library and search arrays, it is ~5x faster. In the limit of large library arrays, qinterp1 has a flat scaling, while interp1 has a linearly increasing scaling (see the image for this file)....
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): Fast interpolation Download |
This is a small but efficient tool to perform K-nearest neighbor search, which has wide Science and Engineering applications, such as pattern recognition, data mining and signal processing.The code was initially implemented through vectorization. After discussions with John D'Errico, I realized...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (48): Efficient K-Nearest Neighbor Search using JIT Download |
Compute the minimal bounding box of a set of 2D points, similarly to the "Minimal Bounding Rectangle" of John D'Errico.However: - The algorithm is fully vectorized (matlab implementation, no for loop). Thus it is better for big set of points - It computes only the minimum area rectangle, not the...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): 2D minimal bounding box Download |
The probability of informed trading (PIN) denotes that probability that a counterparty in the trading process has superior information on the value of the asset exchanged. This is a key concept in empirical studies of market microstructure.The parameters needed to compute the PIN are obtained...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 184.32 KB | Download (46): Probability of Informed Trading Download |
Aid for Kakuro puzle solving. Creates an Excell spreadsheet with all possible combinations of the digits 1-9 that sum (without repeats) to any value that could appear in a Kakuro puzzle. The output file, 'KakuroAid.xls' can be sorted in Excell by number of cells or total...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (48): Kakuro Aid Download |
ANYMATE can be used to easily animate Matlab plots. It is very general and is not limited to any specific plot type or specific object. Given a plot function and some data, a useful animation can often be accomplished with just a single line of code. It is also possible to create an animation...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 2.02 MB | Download (49): anymate Download |