[Scilab-users] Double Summation in Scilab

Antoine Monmayrant antoine.monmayrant at laas.fr
Thu Aug 28 07:53:25 CEST 2014


Le 28/08/14 03:05, tanthiamhuat a écrit :
> the formuation is as below:
>
> http://postimg.org/image/cg25hlzvh/
>
>
>
> --
> View this message in context: http://mailinglists.scilab.org/Double-Summation-in-Scilab-tp4031100p4031102.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
If you have stored the terms of your sum in a matrix "mat", let's say 
with "t" index for the row and "p" index for the column, you can sum 
over "t" using "sum(mat, 'r')", sum over "p" using "sum(mat, 'c')" and 
sum everything using "sum(mat)".

Hope it helps,

Antoine



More information about the users mailing list