Polynomial Fitting with Added Constraints Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: mmpolyfit.m
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: Duane Hanselman (View more)

Polynomial Fitting with Added Constraints script description:




Publisher review:
Polynomial Fitting with Added Constraints - Like POLYFIT, but adds data weighting, zero coefficients, point and slope constraints. Fit Polynomial to Data with Constraints. (MM)P=MMPOLYFIT(X,Y,N) finds the coefficients of a polynomial P(X) of degree N that fits the data Y in a least-squares sense. P is a row vector of length N 1 containing the polynomial coefficients in descending order,P(1)*X^N P(2)*X^(N-1) ... P(N)*X P(N 1). This matches POLYFIT. The number of elements in X and Y must be equal and greater than N.MMPOLYFIT(X,Y,N,'Param1',PValue1,...) sets selected options based on pairs of parameters and associated values as described below.MMPOLYFIT(X,Y,N,D) sets options based on the options structure D, whose fieldnames are parameters names and whose contents are associated values.D=MMPOLYFIT('Param1',PValue1,...) returns an options structure D using the given input parameter names and parameter values that can be used for calls to MMPOLYFIT.Dnew=MMPOLYFIT(Dold,'Param1',PValue1,...) returns an options structure Dnew that is a copy of the existing options structure Dold altered by the added parameters and associated parameter values.Parameter VALUE and DESCRIPTIONWeight A vector having NUMEL(X) real positive weights. Solution found is the weighted least squares solution. Default value is ONES(SIZE(X)), i.e., no weighting. The equation for the i(th) data point is scaled by the square root of the i(th) weight.ZeroCoef A vector containing the powers of x whose coefficients must be zero, e.g., [1 3 0] sets the x^1, x^3 and x^0 coefficients to zero.Point A p-by-2 matrix containing p points that the resulting polynomial must pass through. The i(th) row contains the i(th) data pair [x(i) y(i)].Slope An s-by-2 matrix containing s points that the slope of the polynomial must pass through. The i(th) row contains the (i)th data pair [x(i) dy(i)/dx].Equal A k-by-(N 2) matrix containing k equality constraints on the N 1 coefficients. The structure of this matrix is [B d] B is k-by-N 1, d is k-by 1, and the constraints are given by B*P' = d where P is the row vector solution containing the polynomial coefficients. Requirements: ยท MATLAB Release: R14SP1
Polynomial Fitting with Added Constraints is a Matlab script for Mathematics scripts design by Duane Hanselman. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Polynomial Fitting with Added Constraints - Like POLYFIT, but adds data weighting, zero coefficients, point and slope constraints.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5