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:



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.

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
Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Related script downloads:

Latest script and internet news

Samsung launched the Premium Music Hub

Samsung launched the Premium Music Hub

Samsung finally gives consumers multiple audio streaming countries promised a while. Premium Music Hub allows users access to over 19 million songs, along with other useful functions.

Posted on: 30 May 2012 13:02 by A. Brown

This could be the first photos of iPhone 5

This could be the first photos of iPhone 5

IPhone\'s case came online in a few pictures that confirm rumors of a larger screen. This could be the first photos of the next iPhone, but nothing is really safe to Apple announcement.

Posted on: 30 May 2012 12:58 by A. Brown

IE 10 for Windows 8, comes with Adobe Flash support

IE 10 for Windows 8, comes with Adobe Flash support

After criticism received at Metro version of Internet Explorer 10 , initially offered no support for Adobe Flash technology, Microsoft has taken measures to correct this problem by working directly with Adobe to integrate the necessary components into the

Posted on: 25 May 2012 10:36 by A. Brown

Windows 8: boot to fast to furious

Windows 8: boot to fast to furious

Last year began to circulate on the Internet videos where Windows 8 systems boot in 7 seconds. Unfortunately, from this performance derives some problems.

Posted on: 25 May 2012 07:28 by A. Brown

SPREAD THE WORD

User Rating

Polynomial Fitting with Added Constraints
Rating: 5.0 out of 5
Based on 1 ratings. 1 user reviews.

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