Interpolation
This program implements various interpolation techniques to resize 2D matrices or Image Matrices.Methods of interpolation used are1) Nearest Neighbour2) Bilinear3) Bicubic 2x24) Bicubic 4x45) Bicubic 6x66) Bicubic 8x8
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (38): ResizeImageMatrix Download |
% Polynomial Interpolation Problem: Lagrange Form% x and y are vectors with the same dimensions% Given n points: (x_k,y_k) k = 1,2,...n% this function finds a polynomial P(x) of degree less% than n such that P(x_k) = y_k% --% Remarks:% The resulting polynomial is displayed in symbolic notation%...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 51.2 KB | Download (45): Lagrange polynomial Download |
Radial basis functions are use for function approximation and interpolation. This package supports two popular classes of rbf: Gaussian and Polyharmonic Splines (of which the Thin Plate Spline is a subclass).The package also calculates line integrals between two points.For more information, see...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (38): Radial Basis Function Network Download |
When interpolating on a given data set, convhull is used to set the boundaries of the interpolation area. Because convhull only minimizes the outline length, there might be interpolation lines which are unwanted (see figure).hullfit tries to minimze the polygon area instead resulting in a hull...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 20.48 KB | Download (43): hullfit Download |
QUADCC is a robust, doubly-adaptive quadrature routine using Clenshaw-Curtis rules.This is a Matlab implementation of "Algorithm 3" as described in "Increasing the Reliability of Adaptive Quadrature Using Explicit Interpolants", P. Gonnet, ACM Transactions on Mathematical Software, 37 (3), art....
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): QUADCC Download |
[Yinterp warningflag] = robustinterp(Xdata, Ydata, targetX)Linearly interpolates in columns of X and Y values with reversals or failures of strict monotonicity in x or y (e.g. noisy and/or quantized observations of ideally monotonic relationships).Ydata and Xdata are column vectors or matrices of...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): Robust interpolation Download |
Syntax: >> xyimagesc(X,Y,C) >> xyimagesc(X,Y,C,...) >> xyimagesc(X,Y,C,... 'PropertyName', PropertyValue ... )The imagesc function works well when the user does not want the interpolation behavior of other functions. However if the data is not on an evenly spaced grid imagesc does not work.This...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): xyimagesc.m Download |
This function uses a non-linear interpolation (Lagrange) to estimate y given x, based on a set of observed x-y points. Coordinates will be sorted based on the x-value of the pair. The x-value provided by the user to calculate y will be estimated using two points left and two points right of the...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): A Parabolic Lagrangian Interpolating Polynomial Function Download |
Reconstruct an image from parallel projection data using the convolution-backprojection algorithmfunction [img,H] = CTrecon(prj,varargin)for a discussion of this function including examples see: http://aprendtech.com/wordpress/?p=74Mathworks has created a workaround to fix the offset problem in...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 225.28 KB | Download (48): CTrecon-an improved parallel data image reconstruct function Download |
scatterquad2(X,Y,Z) finds the volume under the surface defined by the points (X(i),Y(i),Z(i)) with linear interpolation on the Delaunay triangulation of (X,Y) and Z=0 outside the convex hull of (X,Y).Example:load seamountscatterquad2(x,y,z-min(z)) % returns 190.7996inR = (x>=211.1 & x=-48.35 & y
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): scatterquad2 Download |
To find the intersection point of two data sets can be non-trivial in case of the data sets have just a few data points.In this case the both data sets can be interpolated so that there exist a number of data points large enough to find an intersection point.The find_intersection function...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (41): The function, find_intersection Download |
This interpolation package re-implements Matlab's built in methods ppval (1-d case polynomial evaluator) and ppual (multidimensional polynomial evaluator) which are used by Matlab to evaluate polynomial in their so called "pp-form". Matlab's built in versions are extrimely slow even though...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 40.96 KB | Download (39): Extrimely fast general n-dimensional interpolators Download |
Syntax:F=LERP(X,Y,XI)F=LERP(X,Y,XI,EXTRAP)LERP is akin to the Matlab function INTERP1Q and can be used with the same syntax as INTERP1Q with the same results at comparable speed. However, LERP has the following features and capabilities to set it apart from INTERP1Q and others:d-deD?XI may be an...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): LERP: Fast ND Linear Interpolation & Extrapolation Download |
This workspace employs interactive graphics and Muller's method to compute function roots in a rectangular region of the complex plane. Function interact employs surface and contour plots of -log(abs(function(z))) to locate function roots which are read interactively with the graphics cursor and...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 20.48 KB | Download (43): complexzeros Download |
This is basically a wrapper to the pcolor routine which pads the arrays passed to pcolor so that the full array is plotted. It also centers the ticks on the pixels rather than on the edges. The EdgeColor is set to 'none.' This is good for plotting data on a grid when you don't want any...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): pixplot Download |
This is an embarrassingly simple function to augment the currently available MATLAB colormaps. It works as a seamless replacement for the current maps like jet and hsv. So to use it you just call colormap(othercolor('colorname')). The function handles interpolating to any number of points...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 184.32 KB | Download (49): othercolor Download |
the function calculates the (complex) values of index of refraction (gold_n) or the values of dielectric constant (gold_eps) of gold, as a function of wavelength.the values calculate using linear interpolation of the values given in: P. B. Johnson, and R. W. Christy, "Optical Constants of the...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): gold index of refraction / dialectric constant as function of wavelength Download |
Normal interpolation methods takes equally spaced/user-generated x-data as input and outputs new interpolated y-data with non-uniform spacing.This function generates y-data with equal spacing, and interpolates/generates the x-data (linear interpolation). The spacing can be specified as optional...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Interpolate x-data Download |
I threw this together for myself, because I wanted a version of interp with differences 1, 2, and 3 (below). I'm sure it's not as fast as it could be - feel free to comment on any potential improvements, or on any bugs.Differences from MATLAB built-in functions: 1. MUCH faster 2. Extends border...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Faster linear Interpolation Download |
This function carries out the following tasks:1) Allows the user to define a series of waypoints from which to create a polyline.2) Creates a polyline based on a given interpolation method and resolution.3) Generates a series of evenly spaced x y coordinate pairs along the polyline.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): equalspline Download |