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

  1. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!v32.uh.cwru.edu!ellert
  2. From: ellert@v32.uh.cwru.edu ()
  3. Newsgroups: comp.soft-sys.matlab
  4. Subject: Re: List of filenames
  5. Date: 25 Jan 1993 14:58:46 GMT
  6. Organization: Image Analysis Center, Univ. Hospitals of Cleveland
  7. Lines: 21
  8. Distribution: world
  9. Message-ID: <1k0v76INN1bm@usenet.INS.CWRU.Edu>
  10. References: <1993Jan22.163358.10283@nic.funet.fi>
  11. Reply-To: ellert@nu1.uh.cwru.edu
  12. NNTP-Posting-Host: max.uh.cwru.edu
  13.  
  14.  
  15. In article <1993Jan22.163358.10283@nic.funet.fi>, Tero Siili <Tero.Siili@fmi.fi> writes:
  16. >Question: I have a text lines (all of the same length) in a text file.  
  17. >How can I read those text lines into Matlab string variables?  I tried
  18. >using load, but to no avail and I was unable to find other alternatives 
  19. >based on the documentation.
  20.  
  21. A long time ago I wrote a bunch of MEX functions which allow direct file
  22. manipulation based on the C routines fopen, etc.  These routines have been
  23. used by our facility for close to 3 years and have been pretty well debugged
  24. by now.  Your problem would be easily solved by using the mfgets call to
  25. read each line in your file.
  26.  
  27. There is a catch; technically the routines belong to our facility and without
  28. permission I cannot post them.  Supposedly matlab v4.0 has similar file
  29. manipulation capabilities.  For these reasons I haven't bothered to get
  30. permission to post them, however, if there is sufficient interest I'll see
  31. what I can do.
  32.  
  33. Ed Ellert
  34. ellert@nu1.uh.cwru.edu
  35.