fem1d_project_test, a MATLAB code which calls fem1d_project(), which computes the projection of sample data onto a given finite element mesh.
The computer code and data files described and made available on this web page are distributed under the MIT license
fem1d_project, a MATLAB code which projects data into a finite element space, including the least squares approximation of data, or the projection of a finite element solution from one mesh to another.
POWERS starts with sample data for the vector function f(x)=[ 1, x, x^2], on a grid of 11 equally spaced nodes from 0 to 10, and projects this onto a piecewise linear grid of 6 equally spaced nodes from 0 to 10.