Berkeley CSUA MOTD:Entry 19043
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/25 [General] UID:1000 Activity:popular
5/25    

2000/8/19-21 [Computer/SW/Unix] UID:19043 Activity:kinda low
8/18    Data problem: I'm working in MATLAB v.5 (in UNIX) I need to transfer
        a matrix that I computed in MATLAB into EXCEL. How do I do
        that? I tried saving using "matrix_name -ASCII", then I ftp
        to the desktop and tried to have excel read and I get gibberish.
        Please e-mail or post. This bugging the shit out of me and
        I need to solve this problem soon. -fab
        PS I tried using Stat transfer and it also give gibberish.
            \_ Don't use MATLAB!  Use Mathcad or Mathematica with
               the matrices graphically written out for you!
          \_ You are right,MATLAB blows. But I'm stuck with data
             I have in MATLAB. I also don't have access to M/matica
             right now. -fab, who is lame and knows it
        \_ help dlmwrite -brg
        \_ Don't use MATLAB!  Use Mathcad or Mathematica with
           the matrices graphically written out for you!
           \_ You are right,MATLAB blows. But I'm stuck with data
              I have in MATLAB. I also don't have access to M/matica
              right now. -fab, who is lame and knows it
        \_ I'm pretty sure there's a way to write matrices to an
           ASCII file but my MATLAB CD is in the office.
        \_ Take a look at ~emin/save_matrix.m.  This is a simple
           function to save a matrix as tab delimited data using fprintf.
           Since it's a function you can easily modify it to do comma
           separated format or whatever you want.  -emin