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

  • Home
  • SEARCH
  • 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 8755473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:52:03+00:00 2026-06-13T13:52:03+00:00

Possible Duplicate: How do I make a surf plot in MATLAB with irregularly spaced

  • 0

Possible Duplicate:
How do I make a surf plot in MATLAB with irregularly spaced data?

I have such data:

data = [
x1 y1 z1
x2 y2 z2
...
xn yn zn
];

I need to get surface of this data. Third row, z – will be the height of surface. But Xs and Ys are not monotonic continous data, so this doesn’t work:

[X Y] = meshgrid(data(:,1), data(:,2));
Z = interp2(data(:,1), data(:,2), data(:,3), X, Y);

because my data in first and second row is not monotonic.

Update:

TriScatteredInterp can do this.(Thanks @Rody Oldenhuis)

F = TriScatteredInterp(data(:,1), data(:,2), data(:,3))
ti=1:10:600;
[qx qy] = meshgrid(ti, ti);
qz = F(qx, qy);
mesh(qx, qy, qz);
  • 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-06-13T13:52:04+00:00Added an answer on June 13, 2026 at 1:52 pm

    I think you’re looking for TriScatteredInterp. From the documentation:

    F = TriScatteredInterp(X, V) creates an interpolant that fits a
    surface of the form V = F(X) to the scattered data in (X, V). X is a
    matrix of size mpts-by-ndim, where mpts is the number of points and
    ndim is the dimension of the space where the points reside (ndim is 2
    or 3). The column vector V defines the values at X, where the length
    of V equals mpts.

    F = TriScatteredInterp(X, Y, V) and F = TriScatteredInterp(X, Y, Z, V)
    allow the data point locations to be specified in alternative column
    vector format when working in 2-D and 3-D.

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

Sidebar

Related Questions

Possible Duplicate: How can I make XSLT work in chrome? I have this XML
Possible Duplicate: Make error: missing separator I am so stressed out by this silly
Possible Duplicate: How to make return key on iphone make keyboard disappear? I have
Possible Duplicate: ASP.Net:Best way to run scheduled tasks I have to make a scheduled
Possible Duplicate: make drop down list item unselectable I have an asp.net dropdownlist and
Possible Duplicate: When should I make explicit use of the this pointer? I'm wondering
Possible Duplicate: How can I make an HTTP GET request from Perl? I am
Possible Duplicate: How can I make a horizontal ListView in Android? I have used
Possible Duplicate: C# - Make a borderless form movable? I have made a form
Possible Duplicate: Make uitextfield password obscured I have a app that takes in a

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.