Displaying 7 results from an estimated 7 matches for "matlist".
Did you mean:
mailist
2003 Oct 31
2
Summing elements in a list
...nding matrices.
I could use a loop but this is a nested calculation so I was hoping
there is a more efficient way to do this. To help clarify, here is
the code I would use with a for loop
result <- list(mat1=matrix(0,nrow1,ncol1),
mat2=matrix(0,nrow2,ncol2))
for (i in seq(along=matlist)) {
result$mat1 <- result$mat1+w[i]*matlist[[i]]$mat1
result$mat2 <- result$mat2+w[i]*matlist[[i]]$mat2
}
I apologise if this is a trivial question. Unfortunately I don't have
my copy of V&R S Programming to hand.
Thanks for your help,
Angelo
--
-----------------------------...
2003 Apr 23
9
sum
Dear helpers
I have a list where each element is a matrix (the list is
obtained with lapply). I want to sum those matrices. Is there a
function to do that? The sum function sums all the elements...
--
http://adsl.sapo.pt
2011 Mar 15
4
Element by element mean of a list of matrices
Hi All,
is there any effiective and dense/compact method to calculate the mean of a list of - of course coincident - matrices on an element by element basis? The resulting matrix' [i, j]-th element is the mean of the list's matrices' [i, j]-th elements respectively...
Iterating by for statement is quite straightforward, but I am seeking for a more elegant solution, and my attempt with
2011 Oct 17
0
[Reading mat files into R]
...les in one of the previous formats (which can bet set in
preference panel) didn’t resolve my problem.
When I want to load mat file, created by Matlab 2011b release by using
following commands:
*require(R.matlab)*
*require(utils)*
*require(Rcompression)*
* *
*dataPath<- Q:/data/mat”;*
*matList<-list.files(path = dataPath) *
*matQuantity<-length(matList)*
*MatFile<-readMat(file.path(paste(c(dataPath,’/’,matList[1]),collapse=””)),
sparseMatrixClass=”matrix”);*
* *
my CPU usage is increasing even till 100% but memory usage stays very low.
File is not finally loaded.
This whol...
2010 Oct 07
2
Counting unique items in a list of matrices
Hello,
I gave a list of 2 x 2 matrices called matlist. I have about 5000 2 x 2
matrices. I would like to count how many of each 2 x 2 unique matrix I have.
So I am thinking that I need a list of the unique 2 x 2 matrices and their
counts. Can anyone help.
--
Thanks,
Jim.
[[alternative HTML version deleted]]
2002 Nov 27
6
Rbind help needed
Dear list
I have a very simple question which is causing me problems!
I have a matrix A and simply want to rbind this matrix together n times (n is a large number)
How can I write this in R?
I know I could do new<-rbind(z,z,z,...z) with z written n times but this will take forever as n is so large.
Is there a simple way to write this?
Cheers
Mick
2007 Nov 26
3
Fwd: Empty list to use in a for cycle
? stato filtrato un testo allegato il cui set di caratteri non era
indicato...
Nome: non disponibile
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20071126/35b0349a/attachment.pl