Le 24/03/2017 à 18:40, paul.carr...@free.fr a écrit :
Hi all,

I don't know if my question is relavante (or not), but I'm wondering what is the best way to perform a 3D interpolation, from for the matrix definition to the interpolation procedure.

Let me using a basic example: I've some curves y = f(x,T) defining a material behaviour at different temperatures i.e. 1 curve (x,y) per temperature:
- y = f(x,20)
- y = f(x,100)
- y = f(x,200)

etc.

What is the best way to define a single matrix? [x y T] ?

It depends on whether f() is vectorized or not. It could be something like
t = [20 100 200];
[X, T] = ndgrid(x, t);
Y = f(X,T);
// or
Y = feval(x, t);

Then:
M = [X(:) Y(:) T(:)];


_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

Reply via email to