quote:
Originally posted by navid.solati
rr[$(ifile)]=max(col(B)); // get the maximum value for col(2) and put it to matrix cell.;
Use sum() instead of max()
sum(col(B));
maxval = sum.max; // equivalent to max(col(B))
imaxval = sum.imax; // index of max value
#####
#### _\_ ________
##=-[.].]| \
#( _\ | |------|
# __| | ||||||||
\ _/ | ||||||||
.--'--'-. | | ____ |
/ __ `|__|[o__o]|
_(____nm_______ /____\____