[Scilab-users] Building a f(P, T) matrix from P and T line vectors

Samuel Gougeon sgougeon at free.fr
Fri Dec 20 11:04:40 CET 2013


Hi Christophe,

Le 19/12/2013 08:59, Dang, Christophe a écrit :
> .../...
>
> P_matrix + T_matrix
> ->
> [P(1)+T(1) P(1)+T(2)
> P(2)+T(1) P(2)+T(2)]
>
> Now my question:
>
> is there a more convenient way to do this,
> and especially,
> if I want to generate a f(P, T) matrix,
> do I have to build P_matrix and T_matrix and perform
>
> f(P_matrix, T_matrix)
>
> or is there a way to get it directly from the P and T vectors?
feval(Pvector, Tvector, f, ..) will do that, but much slowly than when 
using the native Scilab vectorization.
You may tic-toc your application to test this alternative.

Cheers
Samuel



More information about the users mailing list