Let we have some points $(x_i,y_i),~i=1,2,...n,$ that are scattered on a $2D$ domain like square. And $u_h$ is the solution of a numerical method at these points. Now, if I want to construct a higher order interpolation of $u_h$ at these points, how can I do that? Should I find $u_h^{new}$ with some more points and then use the value of $u_h^{new}$ at these points? Is there any higher order interpolation that can construct with the same points in MATLAB? I could not use interp2.
2026-04-01 15:21:41.1775056901
Higher order interpolation
113 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in NUMERICAL-METHODS
- The Runge-Kutta method for a system of equations
- How to solve the exponential equation $e^{a+bx}+e^{c+dx}=1$?
- Is the calculated solution, if it exists, unique?
- Modified conjugate gradient method to minimise quadratic functional restricted to positive solutions
- Minimum of the 2-norm
- Is method of exhaustion the same as numerical integration?
- Prove that Newton's Method is invariant under invertible linear transformations
- Initial Value Problem into Euler and Runge-Kutta scheme
- What are the possible ways to write an equation in $x=\phi(x)$ form for Iteration method?
- Numerical solution for a two dimensional third order nonlinear differential equation
Related Questions in MATLAB
- Taking snapshots of an animation in PDE toolbox in Matlab
- Including a time delay term for a differential equation
- Dealing with a large Kronecker product in Matlab
- Apply affine heat equation on images
- How to construct a B-spline from nodal point in Matlab?
- How to solve an algebraic Riccati equation when the Hamiltonian spectrum is too close to the imaginary axis.
- Error calculating diffusion equation solution by fft
- How to simulate a random unitary matrix with the condition that each entry is a complex number with the absolute value 1 in matlab
- Implementation help for Extended Euclidean Algorithm
- Optimization problem in Matlab
Related Questions in INTERPOLATION
- Almost locality of cubic spline interpolation
- Reverse Riesz-Thorin inequality
- How to construct a B-spline from nodal point in Matlab?
- Show that there is a unique polynomial of degree at most $2n+1$ such that $q^{[k]}(x_1)=a_k,$ $q^{[k]}(x_2)=b_k$ for $k=0, \dots, n$.
- Show that there is a unique polynomial of degree at most $2k+1$ such that $p^{[j]}(x_1)=a_j \text{ and } p^{[j]}(x_2)=b_j \text{ for } j=0,\dots, k.$
- How to find x intercept for a polynomial regression curve(order 7)
- Quadrature rules estimation
- How to obtain generalized barycentric coordinates for n-sided polygon?
- the highest degree of the polynomial, for which the above formula is exact?
- Interpolation method that gives the least arc lenght of the curve.
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
The
griddatafunction is finding a surface. Here is a way to see how the fit works.Problem statement
The data is a sequence of $m$ points of the form $$\left\{ x_{k}, y_{k}, z_{k} \right\}_{k=1}^{m}$$
The model surface is an approximation of order $d$. Consider $d=2$: $$ z(x,y) = a_{00} + a_{10}x + a_{01}y + a_{20}x^{2} + a_{11}xy + a_{02}y^{2} $$
Linear system
$$ % \begin{align} % \mathbf{A} a &= z \\ % \left[ \begin{array}{cccccc} 1 & x_{1} & y_{1} & x_{1}^{2} & x_{1} y_{1} & y_{1}^{2} \\ \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\ 1 & x_{m} & y_{m} & x_{m}^{2} & x_{m} y_{m} & y_{m}^{2} \\ \end{array} \right] % \left[ \begin{array}{c} a_{00} \\ a_{10} \\ a_{01} \\ a_{20} \\ a_{11} \\ a_{02} \end{array} \right] % &= \left[ \begin{array}{c} z_{1} \\ \vdots \\ z_{m} \end{array} \right] %% \end{align} % $$
Note: the matrix $\mathbf{A}$ is a Vandermonde matrix, the poster child for ill-conditioned matrices.
Normal equations
Forming the normal equations squares the condition number of the system. The solution here is for theoretical insight. If numerical problems manifest, investigate other methods like SVD or QR.
As $\mathbf{A}^{*}\mathbf{A}$ is symmetric, only the upper half is shown.
$$ % \begin{align} % \mathbf{A}^{*}\mathbf{A} a &= \mathbf{A}^{*}z \\ % \left[ \begin{array}{llllll} m & \sum x & \sum y & \sum x^{2} & \sum xy & \sum y^{2} \\ & \sum x^{2} & \sum yx & \sum x^{3} & \sum x^{2}y & \sum xy^{2} \\ & & \sum y^{2} & \sum x^{2}y & \sum xy^{2} & \sum y^{3} \\ & & & \sum x^{3} & \sum x^{4}y & \sum x^{2}y^{2} \\ & & & & \sum x^{2}y^{2} & \sum xy^{3} \\ & & & & & \sum y^{4} \\ \end{array} \right] % \left[ \begin{array}{c} a_{00} \\ a_{10} \\ a_{01} \\ a_{20} \\ a_{11} \\ a_{02} \end{array} \right] % &= \left[ \begin{array}{l} \sum z \\ \sum xz \\ \sum yz \\ \sum x^{2}z \\ \sum xyz \\ \sum y^{2}z \end{array} \right] %% \end{align} % $$
Normal equations solution
$$ a_{LS} = \left( \mathbf{A}^{*}\mathbf{A} \right)^{-1} \mathbf{A}^{*}z $$
Increase degree of fit
Increase $d$ from $2$ to $3$: $$ z(x,y) = a_{00} + a_{10}x + a_{01}y + a_{20}x^{2} + a_{11}xy + a_{02}y^{2} + a_{30}x^{3} + a_{21}x^{2}y + a_{12}xy^{2} + a_{03} y^{3} $$ The new system matrix is has new columns $$ \mathbf{A} = \left[ \begin{array}{ccccccc|ccc} 1 & x_{1} & y_{1} & x_{1}^{2} & x_{1} y_{1} & y_{1}^{2} & x_{1}^{3} & x_{1}^{2} y_{1} & x_{1}y_{1}^{2} & y_{1}^{3} \\ \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\ 1 & x_{m} & y_{m} & x_{m}^{2} & x_{m} y_{m} & y_{m}^{2} & x_{m}^{3} & x_{m}^{2} y_{m} & x_{m}y_{m}^{2} & y_{m}^{3} \\ \end{array} \right] $$ Algorithmically, increasing the fit order is a simple matter. Again, the numerics may present trouble.
Also, avoid the indeterminate form $0^{0}$. Force these terms to unity.