Polynomial Interpolation
When interpolating a multivalued function (more than one y for each x), interp1 produces, at best, an error (if there are identical x data), and at worst, garbage (see the attached image). This function performs meaningful interpolation of a multivalued function, when the inverse (x = g(y)) is a...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): Multivalued function interpolation Download |
This MEX performs 2d bilinear interpolation using an NVIDIA graphics chipset. To compile and run this software, one needs the NVIDIA CUDA Toolkit (http://www.nvidia.com/object/cuda_get.html) and, of course, an NVIDIA graphics card of reasonably modern vintage.BUILDING INSTRUCTIONS: Change the...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 40.96 KB | Download (47): 2D CUDA-based bilinear interpolation Download |
Based on Symbolic Math functions and GUIDE flexibility, this software help to solve easily polynomial functions analysis.User just enter polynomial functions like f(x)/g(x) with f(x) = ax^n + bx^(n-1) + ... C and g(x)= a1x^n + b1x^(n-1) + ... D ; n in N.The version published is in French , but I...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): Polynomial functions analysis with Symbolic Math and GUIDE Download |
A simple m file for the triangle mesh subdivision using linear interpolation. The zip file includes four examples of subdivision.See also the URL:http://www.mathworks.com.au/matlabcentral/fileexchange/24942
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 245.76 KB | Download (47): Linear Subdivision Download |
Bootstrap the yield curve, discount curve and the forward curve from market data***************** BOOTSTRAPPING RESULTS **********************Time (Years)| Yield Curve | Discount Curve| Forward Curve |----------------------------------------------------------------------- 0.51 | 1.2404% | 0.9938...
Platforms: Matlab
License: Freeware | Size: 40.96 KB | Download (47): Bootstrapping Yield Curve Download |
This program returns the coefficients of the shifted Legendre polynomial P_n, given n. The result is a row vector with powers of x decreasing from left to right (standard MATLAB notation). Like for other polynomials, LegendreShiftPoly(n) can be evaluated at x by typing...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): LegendreShiftPoly Download |
POLYFIT_ROOTS Least-squares polynomial fit to data.[R,K] = POLYFIT_ROOTS(X, Y, N, TOL) finds the roots R and constant K so that the polynomial P(s) = K*(s-R(1))*(s-R(2))* ... *(s-R(N)) is the best least-squares fit to the data Y at points X.Argument TOL bounds the accuracy of the fit, and if...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 81.92 KB | Download (47): polyfit_roots 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 (47): LERP: Fast ND Linear Interpolation & Extrapolation Download |
POLYFIT3(X,Y,N,NUL,W) finds the coefficients of a polynomial P(X) of degree N that fits the data, P(X(I))~=Y(I), in a least-squares sense. Any of the coefficients can be forced to be zero, and data can be weighted.NUL is a vector with coefficients forced to be zero in usual order.W is a vector...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): polyfit3 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 |
Rigid body 2-D image co-registration (translation and rotation) is performed using maximization of mutual information.Function is implemented in c-code and compiled using the Matlab compiler to minimize computation time. Current compilation will only run on a 32-Bit windows machine running 2007b....
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 112.64 KB | Download (47): Automatic 2d Rigid Body Image Registration Download |
prg is a semi-automated outlining program on an image. This program enable the user to manually select points on the image to form an outline. The user left click on the image once to make the image active and then left clicks on theregion forming an outline. Once outline is completed the user...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): Semi-Automated Outlining Download |
SPHERE3D plots 3D data on a spherical surface. Useful particularly in metrology of spherical surfaces, spherical wavefronts and wavefields.SPHERE3D(Zin,theta_min,theta_max,phi_min,phi_max,Rho,meshscale)plots the 3D profile Zin as a mesh plot on a spherical surface of radius Rho, between...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 542.72 KB | Download (47): 3D Plot on a Spherical Surface Download |
FFNDGRID grids unevenly spaced data.This is a generalization of FFGRID applicable to N-D data. FFNDGRID may also be used to generate N-dimensional histograms or densityplots.This is very useful when dealing with data which are difficult to view using plot3 (which, in my experience, is the case...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): ffndgrid Fast 'n' Furious N-D data gridding Download |
This demo shows how you can create a COM component from a MATLAB code using MATLAB COM Builder and use the same in an external project independent of MATLAB. This demo compiles a function that uses MATLAB Interpolation capability into a COM component and uses it in an external Visual Basic...
Platforms: Matlab
License: Freeware | Size: 184.32 KB | Download (46): COM Builder Example: Univariate Interpolation Download |
PP = PCHIPD(X,Y,D) provides the piecewise cubic polynomial which interpolates values Y and derivatives D at the sites X. This is meant to augment the built-in Matlab function PCHIP, which does not allow the user to specify derivatives.X must be a vector.If Y and D are vectors, then Y(i) and D(i)...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): Hermite cubic interpolating polynomial with specified derivatives Download |
This function computes at (Xi,Yi) unknown locations the IDW (w P=1, Q=1 yields interpolation at one point --> P>1, Q=1 yields interpolation at a vector of points --> P>1, Q>1 yields interpolation at a (ir)regular grid of points======================================== INPUTS Xc: (mandatory) [Nx1]...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): Inverse Distance Weighted (IDW) or Simple Moving Average (SMA) INTERPOLATION Download |
For given p(x) = PROD[i=1,m]{SUM[j=2,n+2]{(A(i,j)*x^(j-2))^A(i,1)}} we shall get p(x) = SUM[s=1,N+1]{p(s)^(N+1-s)} For example If p(x) = (x-4)^5 * (3x^6-7x^3+5x+2)^2 * (x^3+8)^3 * x^2 or A = [ 5 -4 1 0 0 0 0 0 2 2 5 0 -7 0 0 3 3 8 0 0 1 0 0 0 1 0 0 1 0 0 0 0 ] then from p = polyget(A) we get p =...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): Polynomial coefficient vector derived from sub-polynomial factors 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 |
zooming a given image by a given positive factor can be done..copy nearest_neighbor_zoom.m file and the image file that should be zoomed to your work directory.if the name of the image file is image.jpg and the zooming factor needed is 2.23,run following command on command...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): zooming an image using nearest neighbor interpolation Download |