Polynomial Interpolation
[coef, RSquared]=plotfit(x,y,polyorder)A simple function that accepts x,y data pairs in in the vectors "x" and "y", fits it to a polynomial of order "polyorder", plots the data and the fit, and displays the fit coefficients and the goodness-of-fit measure R-squared in the upper left corner of the...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): plotfit Download |
The standard polynomials are not used to make it more flexible.User provide data stream and generator polynomial.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): CRC code generator Download |
type "untitled" to run.The 7 bit data can be inputted or generated randomly.The crc polynomial used is fixed and cant be changed.The function that calculates and verifies the crc is " mycrc ".The file untitled is the gui but its m file also contains code for generation of random data. Iv included...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (52): Simple CRC calculator and veifier Download |
This program to perform convolution has been written keeping the ordinary polynomial multiplication in mind and in my opinion is the most easily understood program among the ones I have seen on the web or written by other fellow workers although it may not be the best program in its design. The...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (38): masconv Download |
fSGolayFilt is a fast polynomial smoothing filter for uniformly spaced signals. This implementation offers less flexibility than other versions found in the MATLAB Central (eg. from Jianwen Luo, YangQuan Chen or Vassili Pastushenko), but it is optimized for speed by using a C-Mex function for the...
Platforms: Matlab
License: Freeware | Size: 20.48 KB | Download (46): fSGolayFilt Download |
ScaleTime - fast linear matrix interpolationI have recorded timeseries of e.g. size [100'000 x 10] and cut out chunks of about 100 frames according to some events and normalize them to exactly 100 frames.For this task, the direct approach with Matlab's INTERP1 works, but it is slow:...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (42): ScaleTime Download |
GloptiPoly is a MATLAB/SeDuMi add-on to build and solve convex linear matrix inequality (LMI) relaxations of the (generally non-convex) global optimization problem of minimizing a multivariablepolynomial function subject to polynomial inequality, equality or integer constraints.The software...
Platforms: Matlab
License: Freeware | Size: 40.96 KB | Download (40): GloptiPoly Download |
This functions uses GRIDDATA to interpolate pixel values from scatterred points on a head image. A reference image can be used to interactively select point locations from the 10/20 international system (EEG electrode position). Options for interpolation include linear and cubic and nearest. The...
Platforms: Matlab
License: Freeware | Size: 307.2 KB | Download (40): eegplot Download |
Munkres algorithm (also known as Hungarian algorithm) is an efficient algorithm to solve the assignment problem in polynomial-time. The algorithm has many applications in combinatorial optimization, for example in Traveling Salesman problem.There are a few submissions in the File Exchange for the...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (40): Munkres Assignment Algorithm Download |
This program estimates the background (or baseline) of optical spectra by the polynomial minimizing a cost function. If the cost function was quadratic, the solution is the least squares estimation, which is not appropriate in this problem. Instead, we need to use of non-quadratic cost function...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Background correction Download |
function alt_km=ITU_P1511(lat,long)computes altitude of a site at given lat,long coordinatesby means of bicubic interpolation using itu topo 0.5 degrees resolutionmatrix.refer to ITU-R Recommendation P 1511.INPUTSlat: latitude + = North, -=southlong: longitude, positive degrees East.Required...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (54): Altitude in Km above sea level for a given pair of coordinates (lat,long) Download |
The function interpolates between SRTM data points.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): SRTM Interpolation Download |
Ever wonder how the weights and abscissae are calculated for the numerical conversion from radiance to flux? The long and the short of it is that Gauss-Jacobi quadrature determines the weights and abscissae which is similar to Gaussian for low-point quadrature but differs substantially for...
Platforms: Matlab
License: Freeware | Size: 20.48 KB | Download (53): Gauss-Jacobi quadrature Download |
When drawing financial time series from various markets, one usually needs to make some adjustments before evaluating the series. One of the major concerns is that due to different national holidays or working days across countries, the dates happen to be not synchronized. Clearly this could make...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (45): Synchronize Time Series Download |
Like polyfit.m but includes weighting of each data point.Summary----------------Find a least-squares fit of 1D data y(x) with an nth order polynomial, weighted by w(x).Usage-----P = polyfitweighted(X,Y,N,W) finds the coefficients of a polynomial P(X) of degree N that fits the data Y best in a...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (41): polyfitweighted 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 |
This function implements a method of using genetic algorithms to optimise the form of a polynomial, i.e. reducing the number of terms required in comparison to a least-squares fit using all possible terms, as described in the following paper:Clegg, J. et al, "The use of a genetic algorithm to...
Platforms: Matlab
License: Freeware | Size: 30.72 KB | Download (45): gapolyfitn Download |
Genetic Programming (GP) generates nonlinear input-output models of dynamical systems from input-output measurement data. This GP-OLS toolbox applies Orthogonal Least Squares algorithm (OLS) to improve the search effeciency of GP.It can be used for static equation discovery or structure...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (43): GP-OLS model structure identification Download |
These windows are obtained by the polynomial expression w(n)=(16(n/Ns-1))^4-8(n/8Ns-1))^2+1)^L0
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (49): Ferrigno&D'Amico window Download |
The following program is written to simulate a randomly generated message under BSC(p) channel. It examines whether or not the generator polynomial is strong enough to be used at a given packet size and crossover probability p. Error patterns are rondom.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (41): CRC control simulation Download |