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

  1. Path: sparky!uunet!ulowell!m2c!nic.umass.edu!noc.near.net!MathWorks.Com!nuntius
  2. From: little@mathworks.com (John Little)
  3. Newsgroups: comp.soft-sys.matlab
  4. Subject: Re: CMEX
  5. Message-ID: <C1HKzH.9vn@MathWorks.COM>
  6. Date: 27 Jan 93 00:21:17 GMT
  7. References: <1993Jan25.211337.5466@news.dfrf.nasa.gov>
  8. Sender: news@MathWorks.COM (Usenet News Account)
  9. Organization: The MathWorks, Inc.
  10. Lines: 34
  11. X-Useragent: Nuntius v1.1
  12.  
  13. In article <1993Jan25.211337.5466@news.dfrf.nasa.gov> Todd Vernon,
  14. todd@fred.dfrf.nasa.gov writes:
  15. >Our site uses Matlab 3.0 and now is moving to 4.0.  We have
  16. >a few CMEX programs we generated to load large files containing
  17. >time history data sets. 
  18. >
  19. >Due to the way Matlab handles CMEX interaction, ( all passed 
  20. >back data must be in a left hand argument),  this makes it
  21. >very difficult to load data sets with unknown number or
  22. >matrices.
  23. >
  24. >Our data is mostly vector data, so what we do is pass back
  25. >2 left hand args, one that contains all our 1-by-n vectors 
  26. >packed into one matrix, and the other a matrix of characters
  27. >that make up each vector name.  After words, we have a m-file
  28. >that breaks apart each seperate vector putting it in a matlab
  29. >variable by the name in the other matix.  What a PAIN.  
  30. >
  31. >Are we missing something here.   We really need a way to create
  32. >matrices as we load the data and not have our hands tied by
  33. >having to pass them back through left hand args.  
  34. >
  35. >This really hinders our ability to access the data we need to 
  36. >get to, any suggestions.  Changing data format is NOT an option.
  37. >
  38. >Thanks in advance.
  39.  
  40.  
  41. The MEX-file facility in MATLAB 4.0 includes a new routine called
  42. mexPutMatrix that allows you to plop a matrix directly back into 
  43. the MATLAB workspace.
  44.  
  45.  
  46. John Little
  47.