There should be a command called 'diag', have a look at the docs for this function. HTH, Christian
-- Christian Soeller PhD - Dept. of Physiology - Univ. of Auckland Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Saturday, 26 May 2012 at 6:39 PM, Gurunath Katagi wrote: > Dear all, > I am new to using pdl ... > > i have some 30000 matrix from which i want to extract the diagonal elements > from each of them and get the average and standard deviation of each of the > diagonal elements among 30000 matrix. > > however, i am able to able to this in MATLAB, but its very slow ... > > Can anybody help to write this is program using pdl and is there anyway that > i can process it fast using pdl ... > > my program goes like this : > read the matrix files > extract the diagnol elements from each of the them > and find the avg. and std. > > I tried it, but i am facing problem with respect to extracting the diagonal > elements... > > > Thank you > Gurunath > > > > > > > > > _______________________________________________ > Perldl mailing list > [email protected] (mailto:[email protected]) > http://mailman.jach.hawaii.edu/mailman/listinfo/perldl > >
_______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
