home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / softsys / matlab / 115 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  1.0 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!carson.u.washington.edu!dhampton
  2. From: dhampton@carson.u.washington.edu (David Hampton)
  3. Newsgroups: comp.soft-sys.matlab
  4. Subject: Saving a filename
  5. Date: 22 Jan 1993 21:57:39 GMT
  6. Organization: University of Washington
  7. Lines: 13
  8. Message-ID: <1jpqkjINNb6j@shelley.u.washington.edu>
  9. NNTP-Posting-Host: carson.u.washington.edu
  10.  
  11. I have prompted a user for a data filename using 
  12.    filename=input('Data file to read: ', 's');
  13. and now I need to do some manipulations on the file to break it
  14. into matrices for Matlab to load.  This is most easily done with
  15. shell commands from my m-file, but I have to pass the string in 
  16. "filename" to the shell so that I can manipulate the selected file
  17. (Matlab wont export variable values to shell commands).
  18. One way might be to save the filename as
  19.   save tmp_file filename -ascii
  20. but this just saves digits for the letters of the filename.  Is there
  21. a way to save the actual ascii text to a file?
  22.  
  23.   -- Dave Hampton
  24.