OK, I think it is just B[1]. Thanks!
Michael On Sat, Aug 28, 2010 at 6:50 PM, michael <tufemich...@gmail.com> wrote: > Henrik, > OK, finally I got the problem: I have an apostrophe in my > windowns 7 user name. That mess up the file name. So I logged in using a > guest account and it works: > > > Received cmd: 1 > "eval" string: "B" > B = > -0.1347 > Sent byte: 0 > Received cmd: 1 > "eval" string: "variables = {'B'};" > Sent byte: 0 > Received cmd: 2 > save tempname-V6 B > answer=0 > > Thanks a lot for your patience and help. > One final question, the variable B I got from Matlab is not just a numeric > value, it is: > > > B > $B > [,1] > [1,] -0.1346952 > attr(,"header") > attr(,"header")$description > [1] "MATLAB 5.0 MAT-file, Platform: PCWIN, Created on: Sat Aug 28 18:40:26 > 2010 " > attr(,"header")$version > [1] "5" > attr(,"header")$endian > [1] "little" > How can I get only the numeric value, that ' -0.1346952' part? > > > Thanks again, > > Michael > > > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.