Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6836965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:25:10+00:00 2026-05-26T23:25:10+00:00

This is a interpolation problem: I have a function z=z(x,y) and I know the

  • 0

This is a interpolation problem:
I have a function z=z(x,y) and I know the relationship between x and y like x=f(y,x_0). Here x_0’s are starting points of curves on time y=0. Let’s assume x_0=[0 1 2] has three values. For each value of x_0, I get a curve in R^2.x1=f1(y),x2=f2(y) and x3=f3(y) and I draw z1,z2,z3 curves in R^3 using (x1,f1), (x2,f2) and (x3,f3). How can I interpolate z1,z2,23 for getting a surface?
I will be grateful for any help,
mgm

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:25:10+00:00Added an answer on May 26, 2026 at 11:25 pm

    Using your notation, and some arbitrary example relationships for x = f(x0, y) and z = f(x,y), this is how you do it (I also added a plot of the direct calculation for reference):

    % Define grid
    x0_orig = 0:2;
    y_orig  = 0:3;
    [x0, y] = meshgrid(x0_orig, y_orig);
    
    % Calculate x (replace the relationship with your own)
    x = x0 + 0.1 * y.^2;
    
    % Calculate z (replace the relationship with your own)
    z = 0.1 * (x.^2 + y.^2);
    
    % Plot
    subplot(1,3,1)
    surf(x, y, z)
    xlabel('x')
    ylabel('y')
    zlabel('z')
    title('Original data')
    
    %%%%%%%%%%
    % Interpolate with finer grid
    x0i = 0:0.25:2;
    yi  = 0:0.25:3;
    
    xi = interp2(x0_orig, y_orig, x, x0i, yi');
    [x0i yi] = meshgrid(x0i, yi);
    zi = interp2(x0, y, z, x0i, yi);
    
    subplot(1,3,2)
    surf(xi, yi, zi);
    title('Interpolated data')
    
    %%%%%%%%%%
    % Recalculate directly with finer grid
    x0i = 0:0.25:2;
    yi  = 0:0.25:3;
    
    [x0i yi] = meshgrid(x0i, yi);
    xi = x0i + 0.1 * yi.^2;
    zi = 0.1 * (xi.^2 + yi.^2);
    
    subplot(1,3,3)
    surf(xi, yi, zi)
    title('Recalculated directly')
    

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is very similar to that posed here . My problem is that
I would like to have a generic Interpolator class which can interpolate between instances
I have spent hours on a strange problem with the interpolate function of google
I'd like to use both parse time and runtime interpolation for values of a
This is starting to vex me. I recently decided to clear out my FTP,
This might seem like a stupid question I admit. But I'm in a small
This is a difficult and open-ended question I know, but I thought I'd throw
This is my first post here and I wanted to get some input from
I am working on an image manipulation problem. I have an overhead projector that
This is the code I have, it actually works, not perfectly but it does,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.