I have actually some nodes in two dimensional, where $x,y$ are collaborates of them. Also, the value of $v$ is well-known in each node. Now it is important for me to have value that $v$ in some various other nodes prefer $xq,yq$. To carry out this I used the following:

vq=interp2(x,y,v,xq,yq),But over there is one error:

The net vectors have to contain distinct points.

You are watching: The grid vectors must contain unique points.

some of the $xq,yq$ space the very same with part $x,y$. Is this the trouble for together error? Also, I need a greater order interpolant, what is the best method with reasonable price for interpolation?

for example, in the easiest case

=meshgrid(0:0.2:1,0:0.2:1); x=x(:);y=y(:); v=x.^2+y; xq=0.5;yq=0.5;vq=interp2(x,y,v,xq,yq)
numerical-methods matlab
edited Aug 13 \"16 at 13:01
request Aug 13 \"16 in ~ 11:52


1,36222 gold badges1313 silver badges2323 bronze badges
| display 4 much more comments


energetic oldest Votes

Know someone who deserve to answer? re-publishing a attach to this concern via email, Twitter, or Facebook.

her Answer

thanks for contributing response to juniorg8.comematics ridge Exchange!

Please be sure to answer the question. Administer details and share your research!

But avoid

Asking for help, clarification, or responding to other answers.Making statements based upon opinion; back them increase with referrals or personal experience.

Use juniorg8.comJax to style equations. Juniorg8.comJax reference.

To discover more, view our advice on writing great answers.

See more: Which Of The Following Should Be Accomplished First, Prior To Drafting Your Speech Outline?

Draft saved
Draft discarded

Sign up or log in in

sign up utilizing Google
sign up utilizing Facebook
authorize up using Email and also Password

Post together a guest

email Required, but never shown

Post as a guest


Required, but never shown

post Your prize Discard

By click “Post her Answer”, friend agree to our terms of service, privacy policy and cookie plan

Browse various other questions tagged numerical-methods matlab or questioning your own question.

Featured top top Meta
Multivariate function interpolation
numerical Integration of a Gaussian distribution in Polar collaborates
Interest price Tree in Matlab
how to resample interpreted grid to ensure regular interpolation?
discover the organic cubic spline interpolant in ~ the nodes?
network deformation problem
hot Network inquiries much more hot inquiries

concern feed
subscribe to RSS
concern feed To i ordered it to this RSS feed, copy and also paste this URL into your RSS reader.


ridge Exchange Network
site architecture / logo design © 2021 stack Exchange Inc; user contributions licensed under cc by-sa. Rev2021.9.24.40305

juniorg8.comematics ridge Exchange works best with JavaScript permitted

your privacy

By click “Accept every cookies”, girlfriend agree stack Exchange can store cookies on your maker and disclose information in accordance with our Cookie Policy.