🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.soft-sys.matlab
Article #132

Re: SOURCE: mat2str.m - convert matrix to string format

#132
From: Andrew Knight
Date: Thu, 28 Jan 1993 14:28
43 lines
1723 bytes
Seems to be a bug here. Here's what I got out of Michael's original 
version:
>> x=rand(3,3) 
 
x =

    0.3653    0.7227    0.0727
    0.2470    0.7534    0.6316
    0.9826    0.6515    0.8847

>> mat2str(x,9)

ans =

0.3653   0.7227   0.07269  
0.247    0.7534   0.6316   
0.9826   0.6515   0.8847 

Seems fine.  Here's what Ed's one gave:
>> mat2str(x,9)

ans =
 
0        0        0        
0        0        0        
0        0        0        


A bit inaccurate?

Andrew Knight                                
Maritime Operations Division		     
Defence Science and Technology Organisation  
PO Box 1750
Salisbury, SA 5108
Australia
----------------------------------------------------------------------------
            ,-_|\                                e-mail: ajk@mod.dsto.gov.au
  DSTO     /     \                                phone:       61 8 259 5487
AUSTRALIA  \_,-*_/                                  fax:       61 8 259 5139
	        v                            
----------------------------------------------------------------------------
Technical Details
Message-ID: <1993Jan28.082809.165653@dstos3.dsto.gov.au>
Path: arc1-ca.pugleaf.net!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
References: <maurer.727751047@nova.Stanford.EDU> <1k1o90INNkdn@usenet.INS.CWRU.Edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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
Newsgroups: comp.soft-sys.matlab
Subject: Re: SOURCE: mat2str.m - convert matrix to string format
Message-ID: <1993Jan28.082809.165653@dstos3.dsto.gov.au>
From: ajk@mod.dsto.gov.au (Andrew Knight)
Date: 28 Jan 93 08:28:07 CST
References: <maurer.727751047@nova.Stanford.EDU> <1k1o90INNkdn@usenet.INS.CWRU.Edu>
Distribution: world
Nntp-Posting-Host: manta.dsto.gov.au
Lines: 45