Sat 19 Nov 2016 08:30:26 PM UTC, comment #7:
The Matlab functions "scatteredInterpolant" (and the now obsolete "TriScatteredInterp") are still missing in Octave 4.2.0.
Those new functions are provided as files in comment #5.
|
Fri 25 Sep 2015 06:43:41 PM UTC, comment #6:
I'd like to test this change. How can I apply the change to my Octave installation to test this out?
|
Mon 16 Dec 2013 08:50:40 AM UTC, comment #5:
Hacked together a quick wrapper for this today. I actually implemented it under the class name scatteredInterpolant (which is what the mathworks seems to want to call it these days), but the important parts of the interface are essentially identical for TriScatteredInterp, so I threw in a wrapper for that that just creates a scatteredInterpolant object.
FTR, I used the old class mechanism, because the new classdef setup doesn't allow me to override the subsref method (yet?), which is required to replicate the functionality. It doesn't really matter though, since scatteredInterpolant in matlab implements 'value' copy semantics.
Also, whoever takes care of this may want to clean up my patch since I'm still getting used to the octave coding style.
(file #29932)
|
Tue 13 Mar 2012 09:57:42 PM UTC, comment #4:
Jordi,
I don't think this requires classdef,
it should be possible to do it with the
"old style" classes whiche are currently in Octave ...
Is there any reason why you think this is not possible?
Cristian,
I should have a slightly modified version of griddata
that does something very similar to what you want, i.e.:
[z_1, Interpolationobject] ...
= griddata(x_old, y_old, z_old, x_1, y_1);
z_2 ...
= griddata(x_old, y_old, z_old, x_2, y_2, ...
Interpolationobject);
If you're interested I can look it up and post it somewhere,
e.g. on Agora.
c.
|
Tue 13 Mar 2012 09:25:58 PM UTC, comment #3:
This first requires implementing classdef classes in Octave. That's a huge thing in itself. Let's postpone this.
|
Tue 13 Mar 2012 09:21:26 PM UTC, comment #2:
You are right, Carlo,
'griddata' provides the functionallity of 'TriScatteredInterp'.
But as far as I can see, a simple wrapper is not enough to assure compatibility to MATLAB.
That is because of the different usage of the commands:
Using Octave one would write:
z_new=griddata(x_old,y_old,z_old,x_new,y_new);
In MATLAB it is:
Interpolationobject=TriScatteredInterp(x_old,y_old,z_old);
z_new=Interpolationobject(x_new,y_new);
Thus, I think it is necessary, to split up the functionality of griddata. Currently, I don't have the time to do this myself, sorry.
|
Tue 13 Mar 2012 08:20:38 PM UTC, comment #1:
you can perform the same tasks using "griddata"
actually it would be quite easy to implement
TriScatteredInterp as a wrapper around griddata,
would you like to submit a changeset?
|
Mon 12 Mar 2012 10:14:32 PM UTC, original submission:
The MATLAB-command 'TriScatteredInterp as described here:
http://www.mathworks.de/help/techdoc/ref/triscatteredinterp.html
is apparently not yet available.
|