polynomial fit with boundary conditions
    6 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    DF
 el 16 de Feb. de 2012
  
I would like to make a polynomial fit for a vector, but imposing some boundary conditions: second derivative at the edges is zero. How can this be done?
0 comentarios
Respuesta aceptada
  John D'Errico
      
      
 el 16 de Feb. de 2012
        Don't!
You are describing what appears to be a spline, but will be a high order polynomial, subject to constraints. This will invariably produce crapola.
Use a spline to do the job of a spline. If you can't write that yourself, then use code from the file exchange that does it for you.
3 comentarios
  Bjorn Gustavsson
      
 el 17 de Feb. de 2012
				Mathworks spline toolbox has tools for splines of arbitrary order. (I thought John's SLM-tool had too.)
Más respuestas (0)
Ver también
Categorías
				Más información sobre Polynomials en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!