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

  1. Path: sparky!uunet!news.uiowa.edu!hobbes.physics.uiowa.edu!news.iastate.edu!ux1.cso.uiuc.edu!sdd.hp.com!swrinde!gatech!udel!darwin.sura.net!sgiblab!munnari.oz.au!yoyo.aarnet.edu.au!news.adelaide.edu.au!dstos3.dsto.gov.au!ajk
  2. Newsgroups: comp.soft-sys.matlab
  3. Subject: Re: SOURCE: mat2str.m - convert matrix to string format
  4. Message-ID: <1993Jan28.082809.165653@dstos3.dsto.gov.au>
  5. From: ajk@mod.dsto.gov.au (Andrew Knight)
  6. Date: 28 Jan 93 08:28:07 CST
  7. References: <maurer.727751047@nova.Stanford.EDU> <1k1o90INNkdn@usenet.INS.CWRU.Edu>
  8. Distribution: world
  9. Nntp-Posting-Host: manta.dsto.gov.au
  10. Lines: 45
  11.  
  12.  
  13. Seems to be a bug here. Here's what I got out of Michael's original 
  14. version:
  15. >> x=rand(3,3) 
  16.  
  17. x =
  18.  
  19.     0.3653    0.7227    0.0727
  20.     0.2470    0.7534    0.6316
  21.     0.9826    0.6515    0.8847
  22.  
  23. >> mat2str(x,9)
  24.  
  25. ans =
  26.  
  27. 0.3653   0.7227   0.07269  
  28. 0.247    0.7534   0.6316   
  29. 0.9826   0.6515   0.8847 
  30.  
  31. Seems fine.  Here's what Ed's one gave:
  32. >> mat2str(x,9)
  33.  
  34. ans =
  35.  
  36. 0        0        0        
  37. 0        0        0        
  38. 0        0        0        
  39.  
  40.  
  41. A bit inaccurate?
  42.  
  43. Andrew Knight                                
  44. Maritime Operations Division             
  45. Defence Science and Technology Organisation  
  46. PO Box 1750
  47. Salisbury, SA 5108
  48. Australia
  49. ----------------------------------------------------------------------------
  50.             ,-_|\                                e-mail: ajk@mod.dsto.gov.au
  51.   DSTO     /     \                                phone:       61 8 259 5487
  52. AUSTRALIA  \_,-*_/                                  fax:       61 8 259 5139
  53.             v                            
  54. ----------------------------------------------------------------------------
  55.  
  56.  
  57.