How to grid xyz data without interpolation
    7 ビュー (過去 30 日間)
  
       古いコメントを表示
    
I have a Digital Elevation Model (DEM) was provided as a list of x, y, z coordinates (x and y are 1 x N sized vectors). I would like to grid the so that I can view z as an N x N matrix, but I do NOT want to perform any interpolation on the surface described by z. It appears that the MATLAB 'griddata' function does not allow you to grid a dataset without interpolation. Is there any function that simply allows my to put this xyz data into a grid of z with dimensions along x and y?
0 件のコメント
回答 (2 件)
  Walter Roberson
      
      
 2015 年 5 月 22 日
        If you are trying to create an N x N matrix out of a 1 x N vector then it will only be fractionally populated (1 out of N), and you have not defined what you want to go into the empty places.
2 件のコメント
  Walter Roberson
      
      
 2015 年 5 月 22 日
				If the purpose is just visual presentation then scatter() might be what you are looking for.
  John D'Errico
      
      
 2015 年 5 月 22 日
        If you only have a set of points that do not lie on a regular grid, BUT you require a gridded set of points, this is IMPOSSIBLE to solve without interpolation of some sort.
Wanting magic to happen will not suffice, unless of course, your name is Harry Potter. I don't recall any mathematics classes offered at Hogwarts.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


