Positive
PCG Preconditioned Conjugate Gradients Method is a replacement of the standard built-in PCG code. Two new options are implemented: 'flex' and 'null'. The 'flex' option changes the standard PCG algorithm into the flexible one. It allows using sophisticated preconditioning, not limited to the...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): pcg.m with 'null' and 'flex' options Download |
Converts normally distributed z-statistic to one- or two-tailed p-valueby integrating the standard normal pdf. If no "tails" value is specified, z2p computes the two-tailed value by default. The output p is the same size as z, which can be a scalar, vector, or matrix. Inputs:z: normally...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): z2p Download |
divisor(n) : row vector of all distinct divisors of a positive integer N, including 1 and N.Remark: This function uses the default factor() routine in Matlab and hence is limited to input values up to 2^32. However if factor() routine does get updated for larger integers, this function will still...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): divisor(n) Download |
Euler_Phi.zip is a suite of the foll Programmes :1) Euler_Phi (n) returns the no of positive integers less than n which are prime to n.2) a_k_mod_m_LCM_Method (a, m, k) : Imagine computing mod(14^26, 45) or mod(56^3005, 1125).This programme computes a_k_mod_m = mod (a^k, m) when a and m are...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): Euler_Phi and Its Applications Download |
Given a positive integer specifying size (N), this code will compute an example latin cube, a 3 dimensional extension of the latin square in which each orthogonal slice through the cube is itself a latin square.Note that the cube created is not an example of a /balanced/ latin cube, rather a...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): latin cube Download |
The idea is to give more emphasis in some examples of data as compared toothers by giving more weight. For example, we could give lower weights tothe outliers. The motivation to write this function is to compute percentilesfor Monte Carlo simulations where some simulations are very bad (in terms...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): Returns weighted percentiles of a sample Download |
In many experimental settings in the life sciences, aggregated count data needs to be analyzed, for example, the number of mites on leaves of a tree, or the number of parasites found in hosts. This data is often well-described by a negative-binomial distribution. Although Matlab's statistical...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (50): mnbinrnd Download |
Convert a single positive numeric scalar value into a string giving that value as the multiple of an IEC/ISO binary prefix. The binary prefix may be selected to be either the full name or the symbol, the symbol is default.The function automatically uses the lowest suitable binary prefix.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 1024 KB | Download (45): Numeric To Binary Prefixed String Download |
Matlab doesn't provide the values of n! when n>170, but this code can evaluate the logarithm of of n! with absolute accuracy of 1e-12 or better, and relative accuracy of 1e-15 or better. The following codes employ Stirling's integration formula of Gamma function.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (48): Log Factorial of Large Positive Numbers Download |
Calculates the min and max of a positive triangular distribution given a standard deviation (sigma) and assuming the mode = 1.This function can handle single value,vector or matrix inputs of sigma. For sigma > 1/sqrt(6), the distribution will be asymmetrical with minimum = 0 and mode = 1.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Triangular Distribution Parameters - tridist_pars Download |
This submission demonstrates how to write a level-2 M-file S-function with a variable sample time.The block samples and holds an input signal were the inter-sample period is specified by another input signal (and may vary from time period to time period).Each step size must be positive or an...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Zero Order Hold with variable time step Download |
The plotDTI function plots a single tensor, a row of tensors, or a 2D field of tensors as Gaussian ellipsoids. The tensors must be given as 3x3 symmetric positive definite matrices.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 30.72 KB | Download (49): Diffusion Tensor Field (DTI) Visualization Download |
v=randsampleWRW(x,k,w)Returns V, a weigthed sample of K elements taken among X without replacementX a vector of numericsK amount of element to sample from xW a vector of positive weights w, whose length is length(x)% EXAMPLE:% for i=1:100% v(i)=randsampleWRW([0,0.5,3,20],1,[0.5,0.4,0.05,0.05]);%...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (53): modified randsample Scripts) Download |
We can exploit the symmetry of a real, positive definite, symmetric matrix by using the Cholesky decomposition to compute the inverse.The built-in MATLAB inv function uses LU decomposition which requires extra pivots and operations. Rarely does one actually need to compute the inverse of a matrix...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): Fast Symmetric Matrix Inverse Download |
For negative and pisitive data.If you have part of your data with a negative sign, you can try this analysis to find and plot the Weibull Distribution. FOr positive data runs very well.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): The Weibull Distribution Download |
Y = UPSIDEVARIANCE(Y) returns the upside variance for columns of variable Y.Y = UPSIDEVARIANCE(Y, m) returns the upside variance using vector m as expected value for columns of variable Y.====================================================Upside variance is defined as the average sum of squared...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Upside variance Download |
% C = CIRCONV(A,B,N) performs the N-point circular convolution% of vectors A and B. C is returned as a row vector. A and B% must be vectors, but may be of different lengths. N must be% a positive, non-zero integer. The results of CIRCONV will% match that of CONV if N>=( length(A) + length(B) -...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 20.48 KB | Download (43): N-point circular convolution Download |
Solves a common algebraic Riccati equation using Schur decomposition.This function solves an algebraic Riccati equation of the form:A'*X + X*A' - X*G*X + Q = 0,where A, G, and Q are given and X is the symmetric solution. All terms are real nxn matrices and G and Q are positive semi-definite.A...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): Algebraic Riccati Equation Solver Download |
THE GAME IS PLAYED BY USER Vs CPURULES OF THE GAME1. EACH HAS A CHANCE TO CHANGE EITHER MONTH OR DATE BUT NOT "BOTH".2. WHO EVER REACHES THE FINAL DESTINATION(i.e, DEC 31) IN A CALENDER WILL WON THE GAME.3. THERE IS NO WAY TO GO BACK FROM A GIVEN POSITION(since always TIME moves in forward or...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): DATEGAME Download |
SHOWREGIONS(L,N) displays the regions of the label matrix L corresponding to the indices listed in the vector N. L is a label matrix generated by the functions BWLABEL or WATERSHED, and N is a vector of indices (positive integers, and zero).
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): showregions.m Download |