Article View: comp.soft-sys.matlab
Article #15Saving a filename
From: David Hampton
Date: Fri, 22 Jan 1993 21:57
Date: Fri, 22 Jan 1993 21:57
13 lines
1085 bytes
1085 bytes
I have prompted a user for a data filename using
filename=input('Data file to read: ', 's');
and now I need to do some manipulations on the file to break it
into matrices for Matlab to load. This is most easily done with
shell commands from my m-file, but I have to pass the string in
"filename" to the shell so that I can manipulate the selected file
(Matlab wont export variable values to shell commands).
One way might be to save the filename as
save tmp_file filename -ascii
but this just saves digits for the letters of the filename. Is there
a way to save the actual ascii text to a file?
-- Dave Hampton
Technical Details
Message-ID:
<1jpqkjINNb6j@shelley.u.washington.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!carson.u.washington.edu!dhamptonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!carson.u.washington.edu!dhampton From: dhampton@carson.u.washington.edu (David Hampton) Newsgroups: comp.soft-sys.matlab Subject: Saving a filename Date: 22 Jan 1993 21:57:39 GMT Organization: University of Washington Lines: 13 Message-ID: <1jpqkjINNb6j@shelley.u.washington.edu> NNTP-Posting-Host: carson.u.washington.edu