thanks all for the answers; I didn't know about ndgrid and I'm currently
having a look on it (seems to be quite interesting) 

Samuel: from your example and the help doc, I need to understand how to
proceed to perform linear interpolations (temperatures and abscissa's in
my example) 

Paul 

Le 2017-03-24 21:40, Samuel Gougeon a écrit : 

> 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
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

Reply via email to