Dear all:
Thanks a lot for every thing. The codes work well. For beginners it
is amazing, because the algorithms is so different from other
language and so short.
Incidentally  is it possible to make subtotals of other
variables based on the X variable?
interval X: x0 x1 x2 xn
Y:(length m1)
Z:(matrix m1*m2)
We would like to make subtotal matrix based on the Y variables with
interval X.
That is the reason why considered the code:
subtotal=: 4 : 0
u-_1}.0,u=.(<:+/\y){+/\x
)
If we can count out the number for each interval, just it is good to
apply to each columns of Z matrix.
Best regards.
+++++++++++++++++++++++++++++
Toshinari Kamakura
Chuo University
1-13-27 Kasuga
Bunkyo-ku
Tokyo 112-8551, Japan
++++++++++++++++++++++++++++++
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm