Matrix Equation
This is a small example code for "Steepest Descent Algorithm". It implements steepest descent Algorithm with optimum step size computation at each step. The code uses a 2x2 correlation matrix and solves the Normal equation for Weiner filter iteratively.Reference:Adaptive Filter Theory 3rd...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): Steepest Descent Algorithm Download |
Flow past a wedge is governed by the Falkner-Skan equation. This equation admits only numerical solution, which requires the application of the shooting technique. The program plots the velocity for various wedge angles. The result obtained is in agreement with figure 8-10 in page 352 of Deen's...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Numerical solution of the Falkner-Skan equation for various wedge angles Download |
This include a MEX-DLL file which is an implementation of R L Siddon's refined method by Jacob for the calculation of ray path integral in PET/CT system image reconstruction. This is based on Line Intersection Length model to calculate probability matrix elements. Inputs are the LOR number and a...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (52): PET reconstruction system matrix Download |
This is the first part of the planned series for Model Predictive Control (MPC) tutorials.Dynamic Matrix Control is the first MPC algorithm developed in early 1980s. It is probably also the most widely used MPC algorithm in industry due to the fact that its internal model, the step response model...
Platforms: Matlab
License: Freeware | Size: 30.72 KB | Download (41): MPC Tutorial I: Dynamic Matrix Control Download |
In the programs, we perform flash calculations of a mixture of hydrocarbons (ethane, propane, n-butane and n-pentane) using the Rachford-Rice equation. The phi-phi method, based on the SRK equation of state, is used to compute the equilibrium constants. We also find the True Vapor Pressure. All...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): Flash Calculations using the Soave-Redlich-Kwong equation of state Download |
We solve a binary distillation problem using the solution of a Riccati equation. We find that four plates are needed to achieve the desired product purity. We also compute the number of stages with the classical approach by stepping off stages using the equilibrium curve and the operating line....
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): Application of the Riccati Equation to Solve Binary Distillation Problems Download |
The program 'Efinder' numerically solves the Schroedinger equation using MATLAB's 'ode45' within a range of energy values. By taking advantage of the dramatic endpoint behavior of the resulting wave solutions, 'Efinder' determines the eigen energies to any accuracy needed.This program has been...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (40): Eigen Energy Solver for Schroedinger Equation Download |
Input data is the Microsoft ExceldlT« file, where the table of nodes, table of elements, nodal external loads vector and boundary conditions are stored.After running the mabs3d.m file on the Command Window, the program calculates the stiffness matrix in local coordinates kiL (element i). Once...
Platforms: Matlab
License: Freeware | Size: 20.48 KB | Download (47): Matrix Analysis of Three Dimensional Bar Structures MABS3D Download |
A set of blocks for manipulating 3x3 and 4x4 matrices. In versions of Simulink prior to R12, matrices were handled in row-major form, thus the need for special blocks to handle matrices. Although Simulink can now handle arrays as signals, some users may still find the row-major approach...
Platforms: Matlab
License: Freeware | Size: 81.92 KB | Download (44): Matrix Library for Simulink Download |
This short tutorial illustrates basic numerical matrix computation in C. I encourage any comments from expirienced mex programmers for style improvement.This is a nice little function to demonstrate how you can interface MATLAB and C style matricies. There is some example code included showing...
Platforms: Matlab
License: Freeware | Size: 133.12 KB | Download (44): Tutorial: C mex matrix demo Download |
Two mass variable equations with "Aerospace 3Dof Simple Variable Mass Blockset" are compared in a 1Dof frictionless environment. Initial conditions are given in Model Callbacks.Results showed that "Aerospace 3Dof Simple Variable Mass Blockset" uses the incorrect equation.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): Aerospace Blockset / Incorrect Variable Mass Equation Download |
Phi = keplerSTM(x0,dt,mu) will return the state transition matrix Phi for a set of objects described by initial positions and velocities (x0) with gravitational parameters mu, propogated along Keplerian orbits for time dt. The positions and velocities at time dt is then given by Phi*x0. x0 must...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): Keplerian State Transition Matrix Download |
Contains three matrix completion algorithms and a demo script for running them. Also compares against other matrix completion algorithms - Singular Value Thresholding and Fixed Point Iteration.Solves the following three optimization problems:min rank(X) subject to ||y - M(X)||_2
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): Matrix Completion via Thresholding Download |
In the program, we obtain equilibrium constants, compressibility factors, molar volumes and densities using the Soave-Redlich-Kwong equation of state. We find the same results as those given by Henley and Seader in Equilibrium-Stage Separation Operations in Chemical Engineering, Wiley, 1981...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): Equilibrium Constants Computation using the Soave-Redlich-Kwong equation of state Download |
The method uses finite differences to solve Laplace equation and matrix inversion to solve the resulting system of linear algebraic equations. The rectangular plate has both dimensions set equal to unity. Each dimension is discretized and the total number of nodal points is equal to 29*29. To...
Platforms: Matlab
License: Freeware | Size: 30.72 KB | Download (45): Temperature Profile in a Rectangular Plate Download |
this is the first generation of the 'fig2real' programme. i will modify it and upload it again.this programme used to get the plynomial equation of curve drawn on picture.....thanks mathwork
Platforms: Matlab
License: Freeware | Size: 30.72 KB | Download (39): equation of curve on picture Download |
function W = euklid_W(ws,d,n)function W = euklid_invW(ws,d,n) PURPOSE: create an (inverse) euklidean distance spatial weight matrix (n x m 'moving-window' style matrix with distance to center cell weighted.) ------------------------------------------------------------------ USAGE: W =...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Euklid (Inverse) Distance Weight Matrix Download |
Input data is the MS Excel file, where the table of nodes, table of elements, nodal external loads vector and boundary conditions are stored.After running the mabs2d.m file on the Command Window, the program calculates the stiffness matrix in local coordinates kiL (element i). Once the...
Platforms: Matlab
License: Freeware | Size: 30.72 KB | Download (50): Matrix Analysis of Two Dimensional Bar Structures MABS2D Download |
In this paper i try to associate a linear dynamical system dX/dt=AX to the PDE wave equation.So i discretize the space to step h,and set the limited develpment.it is well application also for spherical wave.J.C Willems gives good standing from ODE to PDE,and From PDe to ODE.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): A Linear Dynamical System Associated To Wave Equation Download |
Find the projection of point P in R^n on the ellipsoidE = { x = x0 + U*(z.*radii) : |z| = 1 }, where U is orthogonal matrix of the orientation of E, radii are the axis lengths, and x0 is the center.Or on generalized conic E = { x : x'*A*x + b'*x + c = 0 }.The projection is the minimization...
Platforms: Matlab
License: Freeware | Size: 30.72 KB | Download (44): Euclidian projection on ellipsoid and conic Download |