octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #61961] Griddata cannot produce mesh on vertic


From: Rik
Subject: [Octave-bug-tracker] [bug #61961] Griddata cannot produce mesh on vertical vertices
Date: Sun, 30 Jan 2022 14:08:30 -0500 (EST)

Follow-up Comment #6, bug #61961 (project octave):

> Of course it can, it's scattered data. Is there another method which works
well with duplicate z data?

This makes no sense.  The translation of the English language statement to a
concrete mathematical statement is that


V1 = f(x1,y1,z1)
V2 = f(x1,y1,z1)


What function produces different values for identical inputs and is also
useful?

As Pantxo pointed out, griddata called as


zz = griddata (coord(:,1),coord(:,2),coord(:,3),xx,yy);


is doing interpolation over a 2-D surface.  If you are trying to do
interpolation over a 3-D volume then the calling form is


VI = griddata (X, Y, Z, V, XI, YI, ZI)


This would be appropriate, for example, for temperature data where you might
have data sampled at the same height (same Z value) but on the left-hand side
of the room (low X value) and on the right-hand side of the room (high X
value).

For example of a cylinder with mesh walls see cylinder.m function included
with Octave.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61961>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]