Re: [R] help in matlab - r code

2010-03-30 Thread marta rufino
Dear Susanne, Thank you for your answer :-) and for the other people that helped privately. I have been running the code with a friend, and we reached a similar conclusion. Matlab, apparently automatically transforms the matrices in vector and does the correlation between vectors thus obtaining on

Re: [R] help in matlab - r code

2010-03-29 Thread Susanne Schmidt
Dear Marta, I did it in Matlab, and fiddled around with R code until I had *almost* the same result. The "almost" is probably due to R handling the picture values (ranging from 0 to 1) differently than Matlab (ranging from 0 to 255), and simply multiplying the R picture values by 255 did NOT re

[R] help in matlab - r code

2010-03-24 Thread marta rufino
Dear list members, I need to translate 3 lines of matlab code to R (a loop, to be specific), and I don't know what would be the results in matlab or how to do it in R-- I don't realise if they are doing to the col, vector or what. if the results are a vector or a value or a matrix :-( Anyone with

[R] help in matlab - r code

2010-03-24 Thread marta rufino
Dear list members, I need to translate 3 lines of matlab code to R (a loop, to be specific), and I don't know what would be the results in matlab or how to do it in R-- I don't realise if they are doing to the col, vector or what. if the results are a vector or a value or a matrix :-( Anyone with