# Totally unimodular in matlab

The following Matlab project contains the source code and Matlab examples used for totally unimodular. A matrix is totally unimodular provided all of its square submatrices have determinant 1, -1, or 0. This function checks if a matrix is totally unimodular

# Axy2ve in matlab

The following Matlab project contains the source code and Matlab examples used for axy2ve. AXY2VE Convert Graph of Adjacency Matrix and XY Points to Vertices and Edges Inputs:  A is a NxN adjacency matrix, where A(I,J) is nonzero  if and only if an edge connects point I to point J  xy is a Nx2 (or Nx3) matrix of x,y,(z) coordinates (equivalent to V) Outputs:  V is a Nx2 (or Nx3) matrix of x,y,(z) coordinates  E is a Px2 matrix containing a list of edge connections Example:  n = 10;  xy = 10*rand(n,2)  A = round(rand(n))  spy(A);  [V,E] = axy2ve(A,xy) Example:  n = 2e4;

# Ve2axy in matlab

The following Matlab project contains the source code and Matlab examples used for ve2axy. VE2AXY Convert Graph of Vertices and Edges to Adjacency Matrix and XY Points Inputs:  V is a Nx2 (or Nx3) matrix of x,y,(z) coordinates  E is a Px2 matrix containing a list of edge connections Outputs:  A is a NxN adjacency matrix, where A(I,J) is nonzero  if and only if an edge connects point I to point J  xy is a Nx2 (or Nx3) matrix of x,y,(z) coordinates (equivalent to V) Example:  n = 10;  V = 10*rand(n,2)  E = ceil(n*rand(3*n,2))  [A,xy] = ve2axy(V,E)  spy(A); Example:  n = 2e4;

# Discrete-time periodic riccati equation solver for periodic lq state-feedback design in matlab

The following Matlab project contains the source code and Matlab examples used for discrete-time periodic riccati equation solver for periodic lq state-feedback design . The m-file "dpre" solves the discrete-time periodic optimal control problem by a cyclic QZ method.

# Ginv(x) in matlab

The following Matlab project contains the source code and Matlab examples used for ginv(x). Matlab's PINV(X) computes the Moore-Penrose generalized inverse of X, which is unique. Instead, GINV(X) computes any g-inverse of X. In fact, GINV returns a different g-inverse in each draw.

# Triangular and diagonal indexing in matlab

The following Matlab project contains the source code and Matlab examples used for triangular and diagonal indexing. For a symmetric matrix A, A(:) (full "vectorization") contains more information than is strictly necessary, since the matrix is completely determined by the symmetry together with the lower triangular portion, that is, the n(n+1)/2 entries on and below the main diagonal.

# Kronecker tensor product in matlab

The following Matlab project contains the source code and Matlab examples used for kronecker tensor product. Kronecker product of the two matrix arguments in the order they appear If A is an m-by-n matrix and B is a p-by-q matrix, then the Kronecker product is the mp-by-nq block matrix    example, if X is 2 by 3, then KRONECKER(X,Y) is       [ X(1,1)*Y X(1,2)*Y X(1,3)*Y         X(2,1)*Y X(2,2)*Y X(2,3)*Y ] Thanks to Etienne Grossmann & Bruno Luong Mayowa.

# Algebraic riccati equation solution in simulink via c+fortran

The following Matlab project contains the source code and Matlab examples used for algebraic riccati equation solution in simulink via c+fortran . This s-function solves Riccati equations in Simulink without calling the Matlab interpreter, it is FAST and usable with Real Time Workshop.

# Vectorized transpose matrix in matlab

The following Matlab project contains the source code and Matlab examples used for vectorized transpose matrix. The vectorized transpose matrix, Tmn, is the matrix that permutes the vectorization of an m#n matrix A into its transpose vectorization.

# Toeplitz-like matrix for nx(n^2) and (n^2)xn martrices a,b. in matlab

The following Matlab project contains the source code and Matlab examples used for toeplitz-like matrix for nx(n^2) and (n^2)xn martrices a,b. . This file takes a matrix A that is Nx(N^2) and creates a Toeplitz-like matrix where the entries are the N NxN submatrices that are contained in A.

# Performs kmedioids clustering, requires only a nxn distance matrix d and number of clusters, k. in matlab

The following Matlab project contains the source code and Matlab examples used for performs kmedioids clustering, requires only a nxn distance matrix d and number of clusters, k. . Performs k-mediods clustering; only requires a distance matrix D and number of clusters k.

# Matrix exponential times a vector. in matlab

The following Matlab project contains the source code and Matlab examples used for matrix exponential times a vector.. This submission contains two functions for computing EXPM(t*A)*b without explicitly forming EXPM(t*A), where A is an n-by-n matrix and b is an n-by-1 vector.

# Euler fixed angles properties in matlab

The following Matlab project contains the source code and Matlab examples used for euler fixed angles properties. Easy to use GUI that gives Euler angles for different rotation matrices and gives rotation matrices for different Euler angles. Also it animates the angle rotations one by one for more understanding.

# Block levinson solver in matlab

The following Matlab project contains the source code and Matlab examples used for block levinson solver. BLOCK_LEVINSON(Y, L) solves the matrix equation T * x = y, where T is a symmetric matrix with block Toeplitz structure, and returns the solution vector x.

# Elimination matrices and inverse in matlab

The following Matlab project contains the source code and Matlab examples used for elimination matrices and inverse. The m-file finds the elimination matrices (and scaling matrices) to reduce any A matrix to the identity matrix using the Gauss-Jordan elimination method without pivoting. Using the matrices gotten it computes the inverse of the A matrix.

# Graph adjacency matrix to incidence matrix in matlab

The following Matlab project contains the source code and Matlab examples used for graph adjacency matrix to incidence matrix. Returns a sparse incidence matrix 'mInc' according to the adjacency matrix 'mAdj'.

# Function to find toeplitz matrix (same as matlab's toeplitz)

The following Matlab project contains the source code and Matlab examples used for function to find toeplitz matrix (same as matlab's toeplitz). %% MYTOEPLITZ matrix finds the toeplitz matrix of a vector % Input : Vector % Output: Toeplitz Matr

# Computes a basic circulant permutation matrix raised to an arbitrary power. in matlab

The following Matlab project contains the source code and Matlab examples used for computes a basic circulant permutation matrix raised to an arbitrary power. . Usage: circperm(N,l) Efficiently computes the basic NxN circulant permutation matrix raised to power 'l' (default: l = 1).

# Nearest positive semi definite covariance matrix in matlab

The following Matlab project contains the source code and Matlab examples used for nearest positive semi definite covariance matrix. The function performs a nonlinear, constrained optimization to find a positive semi-definite matrix that is closest (2-norm) to a symmetric matrix that is not positive semi-definite which the user provides to the function.

# Hadamard matrix generation in matlab

The following Matlab project contains the source code and Matlab examples used for hadamard matrix generation. This script generates hadamard matrix which can be used to calculate Hadamard Transform as H = generate_hadamard(256); I = phantom(256); Hr_1d = H*I; %% 1D hadamard transform Hr_2d = H*I*H'; %% 2D hadamard transform

# Exponentially weighted covariance matrix in matlab

The following Matlab project contains the source code and Matlab examples used for exponentially weighted covariance matrix. Calculates the RiskMetrics "Technical Document" (1996) exponentially weighted covariance matrix (p.179), correlation and volatilities. Input: data - needs to be in format T x k with T = # observations, k = # assets lambda = decay factor

# Plot 2 3d vector(s) in matlab

The following Matlab project contains the source code and Matlab examples used for plot 2 3d vector(s). QUIVERMD(AX, X, V, VARARGIN) plots the column vectors in matrix V at the points with coordinates the column vectors in matrix X, within axes object AX using plot formatting options in VARARGIN.

# Converts a non positive definite symmetric matrix to positive definite symmetric matrix in matlab

The following Matlab project contains the source code and Matlab examples used for converts a non positive definite symmetric matrix to positive definite symmetric matrix. Function that transforms a non positive definite symmetric matrix to positive definite symmetric matrix -i.

# Calcuate euler angles from rotation matrix in matlab

The following Matlab project contains the source code and Matlab examples used for calcuate euler angles from rotation matrix. % This function return the rotation along x,y and z direction from a % Rotation Matrix %Inputs:     % R= 3x3 Rotation Matrix %Outputs:     % rx= Rotation along x direction in radians     % ry= Rotation along y direction in radians     % rz= Rotation along z direction in radians      % R = % % [ cos(ry)*cos(rz), -cos(ry)*sin(rz), sin(ry)]

# Algebraic riccati equation solver in matlab

The following Matlab project contains the source code and Matlab examples used for algebraic riccati equation solver. 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.

# Block diagonal multiplication in matlab

The following Matlab project contains the source code and Matlab examples used for block diagonal multiplication. Used to perform B*M or M*B with B a block diagonal matrix, B is stored as a cell array (call it C) with each element a matrix as a block of B, such that B = blkdiag(C{:}).

# Block circulant matrix package for matlab

The following Matlab project contains the source code and Matlab examples used for block circulant matrix package for matlab. Circulant matrices arise in many matrix problems where the underlying mathematical model has rotational symmetry.

# Row column reduction coding in matlab

The following Matlab project contains the source code and Matlab examples used for row column reduction coding. Description: Row Column Reduction: Input: 8x8 block Output: Row reference vector(logical)8x1     Column reference vector(logical)1x8     Reduced matrix Row Column Expansion: Input: Row reference vector,column reference vector and reduced matrix Output: 8x8 block Reference:Saif Alzahir, “Color maps and graphs compression”, international conference on image processing, Hong Kong-September 2010  .

# Get rotation matrix from 2 orthogonal planes in matlab

The following Matlab project contains the source code and Matlab examples used for get rotation matrix from 2 orthogonal planes. Shows a 3D point cloud and lets the user select a plane by clicking on two points.

# Weighted covariance matrix in matlab

The following Matlab project contains the source code and Matlab examples used for weighted covariance matrix. WEIGHTEDCOV returns a symmetric matrix C of weighted covariances calculated from an input T-by-N matrix Y whose rows are observations and whose columns are variables and an input T-by-1 vector w of weights for the observations.

## Pages 