[Scilab-users] 3D interpolation
paul.carrico at free.fr
paul.carrico at free.fr
Fri Mar 24 21:54:50 CET 2017
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.carrico at 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 at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170324/3161f87e/attachment.htm>
More information about the users
mailing list